aboutsummaryrefslogtreecommitdiffstats
path: root/backend/authentication/backend.py
diff options
context:
space:
mode:
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 bdff796..206d1eb 100644
--- a/backend/authentication/backend.py
+++ b/backend/authentication/backend.py
@@ -61,7 +61,7 @@ class JWTAuthenticationBackend(authentication.AuthenticationBackend):
raise authentication.AuthenticationError("Could not parse user details.")
user = User(token, user_details)
- if user.fetch_admin_status(request):
+ if await user.fetch_admin_status(request):
scopes.append("admin")
return authentication.AuthCredentials(scopes), user