mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
feat: extend user with roles and permissions in GetAccount (#1449)
This commit is contained in:
parent
ddb5e26fcd
commit
0559298d6c
@ -271,6 +271,8 @@ func (c *ApiController) GetAccount() {
|
|||||||
user = object.ExtendManagedAccountsWithUser(user)
|
user = object.ExtendManagedAccountsWithUser(user)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
object.ExtendUserWithRolesAndPermissions(user)
|
||||||
|
|
||||||
organization := object.GetMaskedOrganization(object.GetOrganizationByUser(user))
|
organization := object.GetMaskedOrganization(object.GetOrganizationByUser(user))
|
||||||
resp := Response{
|
resp := Response{
|
||||||
Status: "ok",
|
Status: "ok",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user