[fixes] update share permissions
This commit is contained in:
parent
78a1073dfc
commit
161c7b3d5f
1 changed files with 2 additions and 2 deletions
|
|
@ -145,9 +145,9 @@ def update_share_permissions(role_permissions, doc, user):
|
|||
|
||||
if permissions_by_share:
|
||||
for ptype in share_ptypes:
|
||||
if ptype:
|
||||
if permissions_by_share[ptype]:
|
||||
role_permissions[ptype] = 1
|
||||
|
||||
|
||||
def get_role_permissions(meta, user=None, verbose=False):
|
||||
"""Returns dict of evaluated role permissions like `{"read": True, "write":False}`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue