feat: add GetAllowedApplications() in user's app homepage

This commit is contained in:
Yang Luo
2023-11-08 09:48:31 +08:00
parent a389842f59
commit 498cd02d49
2 changed files with 35 additions and 0 deletions

View File

@ -173,6 +173,12 @@ func (c *ApiController) GetOrganizationApplications() {
return
}
applications, err = object.GetAllowedApplications(applications, userId)
if err != nil {
c.ResponseError(err.Error())
return
}
c.ResponseOk(object.GetMaskedApplications(applications, userId))
} else {
limit := util.ParseInt(limit)