Fix permission for access to root event resource

This commit is contained in:
Raphael Michel
2018-09-27 10:01:57 +02:00
parent 6e53990845
commit 0369deb72d
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ class EventCRUDPermission(EventPermission):
return False
elif view.action == 'destroy' and 'can_change_event_settings' not in request.eventpermset:
return False
elif view.action in ['retrieve', 'update', 'partial_update'] \
elif view.action in ['update', 'partial_update'] \
and 'can_change_event_settings' not in request.eventpermset:
return False