Projet

Général

Profil

0001-rest_authentication-add-flag-to-differentiate-anonym.patch

Benjamin Dauvergne, 02 novembre 2022 14:18

Télécharger (983 octets)

Voir les différences:

Subject: [PATCH] rest_authentication: add flag to differentiate anonymous
 service users (#70933)

 hobo/rest_authentication.py | 2 ++
 1 file changed, 2 insertions(+)
hobo/rest_authentication.py
23 23
    is_anonymous = True
24 24
    is_authenticated = True
25 25
    ou = None
26
    is_publik_service = True
26 27

  
27 28
    def has_perm(self, *args, **kwargs):
28 29
        return True
......
48 49
    is_anonymous = True
49 50
    is_authenticated = True
50 51
    ou = None
52
    is_publik_service = True
51 53

  
52 54
    def __unicode__(self):
53 55
        return 'Publik Service Admin'
54
-