3
0
Fork 0

Compare commits

..

No commits in common. "d70df11be62f8b71b0110edd23a1572faeabece2" and "40df27d6f6cca9810d049bd6db2f3e9f78a44086" have entirely different histories.

3 changed files with 4 additions and 13 deletions

View file

@ -5,12 +5,6 @@ All notable changes to WuttJamaican will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## v0.17.1 (2024-12-08)
### Fix
- use proper uuid for special role getters
## v0.17.0 (2024-12-07) ## v0.17.0 (2024-12-07)
### Feat ### Feat

View file

@ -6,7 +6,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "WuttJamaican" name = "WuttJamaican"
version = "0.17.1" version = "0.17.0"
description = "Base package for Wutta Framework" description = "Base package for Wutta Framework"
readme = "README.md" readme = "README.md"
authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}] authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}]

View file

@ -379,22 +379,19 @@ class AuthHandler(GenericHandler):
""" """
Returns the special "Administrator" role. Returns the special "Administrator" role.
""" """
return self._special_role(session, _uuid.UUID('d937fa8a965611dfa0dd001143047286'), return self._special_role(session, 'd937fa8a965611dfa0dd001143047286', "Administrator")
"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, _uuid.UUID('f8a27c98965a11dfaff7001143047286'), return self._special_role(session, 'f8a27c98965a11dfaff7001143047286', "Anonymous")
"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, _uuid.UUID('b765a9cc331a11e6ac2a3ca9f40bc550'), return self._special_role(session, 'b765a9cc331a11e6ac2a3ca9f40bc550', "Authenticated")
"Authenticated")
def user_is_admin(self, user, **kwargs): def user_is_admin(self, user, **kwargs):
""" """