diff --git a/CHANGELOG.md b/CHANGELOG.md index a855c37..1d9aee6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/) 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) ### Feat diff --git a/pyproject.toml b/pyproject.toml index ec67103..7044e1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "WuttJamaican" -version = "0.17.1" +version = "0.17.0" description = "Base package for Wutta Framework" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}] diff --git a/src/wuttjamaican/auth.py b/src/wuttjamaican/auth.py index 1ffb036..264fdb8 100644 --- a/src/wuttjamaican/auth.py +++ b/src/wuttjamaican/auth.py @@ -379,22 +379,19 @@ class AuthHandler(GenericHandler): """ Returns the special "Administrator" role. """ - return self._special_role(session, _uuid.UUID('d937fa8a965611dfa0dd001143047286'), - "Administrator") + return self._special_role(session, 'd937fa8a965611dfa0dd001143047286', "Administrator") def get_role_anonymous(self, session, **kwargs): """ Returns the special "Anonymous" (aka. "Guest") role. """ - return self._special_role(session, _uuid.UUID('f8a27c98965a11dfaff7001143047286'), - "Anonymous") + return self._special_role(session, 'f8a27c98965a11dfaff7001143047286', "Anonymous") def get_role_authenticated(self, session, **kwargs): """ Returns the special "Authenticated" role. """ - return self._special_role(session, _uuid.UUID('b765a9cc331a11e6ac2a3ca9f40bc550'), - "Authenticated") + return self._special_role(session, 'b765a9cc331a11e6ac2a3ca9f40bc550', "Authenticated") def user_is_admin(self, user, **kwargs): """