aboutsummaryrefslogtreecommitdiffstats
path: root/backend/authentication
diff options
context:
space:
mode:
Diffstat (limited to 'backend/authentication')
-rw-r--r--backend/authentication/user.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/backend/authentication/user.py b/backend/authentication/user.py
index 0ec0188..6256cae 100644
--- a/backend/authentication/user.py
+++ b/backend/authentication/user.py
@@ -47,11 +47,7 @@ class User(BaseUser):
return []
server_roles = await discord.get_roles(database)
- roles = []
-
- for role in server_roles:
- if role.id in self.member.roles:
- roles.append(role.name)
+ roles = [role.name for role in server_roles if role.id in self.member.roles]
if "admin" in roles:
# Protect against collision with the forms admin role