From 2fa00100886429116ce1fa31feafdc2eece86eb3 Mon Sep 17 00:00:00 2001 From: Alexandre Bourlier <alexandre@happy-dev.fr> Date: Mon, 24 Jun 2019 10:47:10 +0200 Subject: [PATCH] bugfix: AnonymousReadOnly https://git.happy-dev.fr/startinblox/applications/risefor-mobilisation/issues/89 --- djangoldp/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoldp/permissions.py b/djangoldp/permissions.py index f3c63c3c..776b4b92 100644 --- a/djangoldp/permissions.py +++ b/djangoldp/permissions.py @@ -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) -- GitLab