3
0
Fork 0

fix: use proper uuid for special role getters

This commit is contained in:
Lance Edgar 2024-12-08 00:09:47 -06:00
parent 40df27d6f6
commit 6b35614502

View file

@ -379,19 +379,22 @@ class AuthHandler(GenericHandler):
""" """
Returns the special "Administrator" role. Returns the special "Administrator" role.
""" """
return self._special_role(session, 'd937fa8a965611dfa0dd001143047286', "Administrator") return self._special_role(session, _uuid.UUID('d937fa8a965611dfa0dd001143047286'),
"Administrator")
def get_role_anonymous(self, session, **kwargs): def get_role_anonymous(self, session, **kwargs):
""" """
Returns the special "Anonymous" (aka. "Guest") role. Returns the special "Anonymous" (aka. "Guest") role.
""" """
return self._special_role(session, 'f8a27c98965a11dfaff7001143047286', "Anonymous") return self._special_role(session, _uuid.UUID('f8a27c98965a11dfaff7001143047286'),
"Anonymous")
def get_role_authenticated(self, session, **kwargs): def get_role_authenticated(self, session, **kwargs):
""" """
Returns the special "Authenticated" role. Returns the special "Authenticated" role.
""" """
return self._special_role(session, 'b765a9cc331a11e6ac2a3ca9f40bc550', "Authenticated") return self._special_role(session, _uuid.UUID('b765a9cc331a11e6ac2a3ca9f40bc550'),
"Authenticated")
def user_is_admin(self, user, **kwargs): def user_is_admin(self, user, **kwargs):
""" """