mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Ensure permission records parsed for groups and users
This commit is contained in:
parent
ad3f406876
commit
ada775e074
2 changed files with 50 additions and 21 deletions
|
@ -656,11 +656,10 @@ func (h *Handler) SetDocumentPermissions(w http.ResponseWriter, r *http.Request)
|
|||
perm.OrgID = ctx.OrgID
|
||||
perm.DocumentID = id
|
||||
|
||||
// get group records for just this group
|
||||
isGroup := perm.Who == permission.GroupPermission
|
||||
groupRecords := []group.Record{}
|
||||
|
||||
if isGroup {
|
||||
// get group records for just this group
|
||||
groupRecords = group.FilterGroupRecords(groupMembers, perm.WhoID)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue