FIX: dav_event_office: use has_global_permission instead of has_role to
give access to super users.
This commit is contained in:
1 parent
7540a3ae7a
commit
c62eba67f6
2 files changed
+9
-7
No files matched your search
@@ -475,6 +475,8 @@ class BasicWorkflow(object):
|
||||
|
||||
if permission == 'export':
|
||||
return has_role(user, 'publisher')
|
||||
elif permission == 'payment':
|
||||
return has_role(user, 'office')
|
||||
return False
|
||||
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user