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