From a736c342e8a175daf1ad47444b7f4bed175dc7d9 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 2 Nov 2022 14:17:07 +0100 Subject: [PATCH 1/2] rest_authentication: add flag to differentiate anonymous service users (#70933) --- hobo/rest_authentication.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hobo/rest_authentication.py b/hobo/rest_authentication.py index b7476b1..d1bd6ea 100644 --- a/hobo/rest_authentication.py +++ b/hobo/rest_authentication.py @@ -23,6 +23,7 @@ class AnonymousAuthenticServiceUser(AnonymousUser): is_anonymous = True is_authenticated = True ou = None + is_publik_service = True def has_perm(self, *args, **kwargs): return True @@ -48,6 +49,7 @@ class AnonymousAdminServiceUser(AnonymousUser): is_anonymous = True is_authenticated = True ou = None + is_publik_service = True def __unicode__(self): return 'Publik Service Admin' -- 2.37.2