aboutsummaryrefslogtreecommitdiffstats
path: root/backend/authentication/backend.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-07-17 12:10:25 +0100
committerGravatar Chris Lovering <[email protected]>2024-07-17 22:16:19 +0100
commit46af39a2a3286401f87a92b3f488bd8b67184c05 (patch)
tree9fda172c7f8f30795866659d29e14ba74465b31e /backend/authentication/backend.py
parentSimplify the logic for fetching from member cache (diff)
Use redis to store the role cache
Diffstat (limited to 'backend/authentication/backend.py')
-rw-r--r--backend/authentication/backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/authentication/backend.py b/backend/authentication/backend.py
index c84ba10..e150580 100644
--- a/backend/authentication/backend.py
+++ b/backend/authentication/backend.py
@@ -68,6 +68,6 @@ class JWTAuthenticationBackend(authentication.AuthenticationBackend):
if await user.fetch_admin_status(request.state.db):
scopes.append("admin")
- scopes.extend(await user.get_user_roles(request.state.db))
+ scopes.extend(await user.get_user_roles())
return authentication.AuthCredentials(scopes), user