Skip to content
Snippets Groups Projects
Commit ff33c01b authored by Jean-Baptiste's avatar Jean-Baptiste
Browse files

bugfix: fix #121

parent a28a3c96
No related branches found
No related tags found
No related merge requests found
Pipeline #901 passed with stage
in 1 minute and 24 seconds
...@@ -63,12 +63,12 @@ class InboxPermissions(WACPermissions): ...@@ -63,12 +63,12 @@ class InboxPermissions(WACPermissions):
Everybody can create Everybody can create
Author can edit Author can edit
""" """
anonymous_perms = ['view', 'create'] anonymous_perms = ['create']
authenticated_perms = ['view', 'create'] authenticated_perms = ['create']
author_perms = ['view'] author_perms = ['view', 'update']
def has_permission(self, request, view): def has_permission(self, request, view):
if view.action in ['create', 'list', 'retrieve']: if view.action in ['create']:
return True return True
else: else:
return super().has_permission(request, view) 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