From 46af39a2a3286401f87a92b3f488bd8b67184c05 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 17 Jul 2024 12:10:25 +0100 Subject: Use redis to store the role cache --- backend/authentication/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/authentication/backend.py') 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 -- cgit v1.2.3