rest_authentication: add flag to differentiate anonymous service users (#70933)
This commit is contained in:
parent
1209ea3219
commit
6bea11793f
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue