From 3281cc9b64950e826ea3f678f82f4a36e7c92d11 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Mon, 23 May 2022 15:07:41 +0200
Subject: [PATCH] fix: investigate

---
 djangoldp_account/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/djangoldp_account/models.py b/djangoldp_account/models.py
index 26ae575..473770e 100644
--- a/djangoldp_account/models.py
+++ b/djangoldp_account/models.py
@@ -149,7 +149,7 @@ class Account(Model):
         lookup_field = 'slug'
         owner_field = 'user'
         permission_classes = getattr(settings, 'USER_PERMISSION_CLASSES', [LDPUserPermissions])
-        anonymous_perms = getattr(settings, 'USER_ANONYMOUS_PERMISSIONS', ['view'])
+        anonymous_perms = getattr(settings, 'USER_ANONYMOUS_PERMISSIONS', [])
         authenticated_perms = getattr(settings, 'USER_AUTHENTICATED_PERMISSIONS', ['inherit'])
         owner_perms = getattr(settings, 'USER_OWNER_PERMISSIONS', ['inherit'])
 
@@ -170,7 +170,7 @@ class ChatProfile(Model):
         lookup_field = 'slug'
         owner_field = 'user'
         permission_classes = getattr(settings, 'USER_PERMISSION_CLASSES', [LDPUserPermissions])
-        anonymous_perms = getattr(settings, 'USER_ANONYMOUS_PERMISSIONS', ['view'])
+        anonymous_perms = getattr(settings, 'USER_ANONYMOUS_PERMISSIONS', [])
         authenticated_perms = getattr(settings, 'USER_AUTHENTICATED_PERMISSIONS', ['inherit'])
         owner_perms = getattr(settings, 'USER_OWNER_PERMISSIONS', ['inherit'])
 
-- 
GitLab