feat: extend user with roles and permissions in GetAccount (#1449)

This commit is contained in:
June 2023-01-04 19:23:57 +07:00 committed by GitHub
parent ddb5e26fcd
commit 0559298d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,6 +271,8 @@ func (c *ApiController) GetAccount() {
user = object.ExtendManagedAccountsWithUser(user)
}
object.ExtendUserWithRolesAndPermissions(user)
organization := object.GetMaskedOrganization(object.GetOrganizationByUser(user))
resp := Response{
Status: "ok",