FIX: dav_event_office: use has_global_permission instead of has_role to
give access to super users.
This commit is contained in:
@@ -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