FIX: dav_event_office: use has_global_permission instead of has_role to

give access to super users.
This commit is contained in:
2019-07-03 15:27:31 +02:00
parent 7540a3ae7a
commit c62eba67f6
2 changed files with 9 additions and 7 deletions

View File

@@ -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
#