mirror of
https://github.com/documize/community.git
synced 2025-08-04 13:05:23 +02:00
New schema for permissions and roles management
This commit is contained in:
parent
fbf2222eda
commit
c51ba65b1d
17 changed files with 810 additions and 665 deletions
|
@ -39,12 +39,14 @@ func AttachUserAccounts(ctx domain.RequestContext, s domain.Store, orgID string,
|
|||
u.Editor = false
|
||||
u.Admin = false
|
||||
u.Active = false
|
||||
u.ViewUsers = false
|
||||
|
||||
for _, account := range u.Accounts {
|
||||
if account.OrgID == orgID {
|
||||
u.Admin = account.Admin
|
||||
u.Editor = account.Editor
|
||||
u.Active = account.Active
|
||||
u.ViewUsers = account.Users
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue