Skip to content
Snippets Groups Projects
Commit 2fa00100 authored by Alexandre Bourlier's avatar Alexandre Bourlier
Browse files

bugfix: AnonymousReadOnly...

bugfix: AnonymousReadOnly https://git.happy-dev.fr/startinblox/applications/risefor-mobilisation/issues/89
parent ce9a94e9
No related branches found
No related tags found
1 merge request!71bugfix: AnonymousReadOnly...
Pipeline #970 passed with stage
in 1 minute and 26 seconds
......@@ -103,7 +103,7 @@ class AnonymousReadOnly(WACPermissions):
def has_permission(self, request, view):
if view.action in ['list', 'retrieve']:
return True
elif view.action == 'create' and request.user.is_authenticated():
elif view.action in ['create', 'update'] and request.user.is_authenticated():
return True
else:
return super().has_permission(request, view)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment