From ff33c01baf8a49497de0c6bc7d4266cc6d7d627e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste <bleme@pm.me> Date: Thu, 18 Apr 2019 13:39:24 +0200 Subject: [PATCH] bugfix: fix #121 --- djangoldp/permissions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/djangoldp/permissions.py b/djangoldp/permissions.py index b78ad7cc..72e5cfb2 100644 --- a/djangoldp/permissions.py +++ b/djangoldp/permissions.py @@ -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) -- GitLab