Commit 50249f2b authored by ynerant's avatar ynerant
Browse files

Superusers are also staff

parent c02380a1
Pipeline #4767 failed with stages
in 1 minute and 12 seconds
......@@ -70,7 +70,7 @@ class OAuthMiddleware(MiddlewareMixin):
user.discriminator = user_json['discriminator']
user.email = user_json['email']
user.avatar_id = user_json['avatar']
user.is_superuser = f"{user.username}#{user.discriminator}" in settings.SUPERUSERS
user.is_staff = user.is_superuser = f"{user.username}#{user.discriminator}" in settings.SUPERUSERS
user.save()
request.session['user'] = user.discord_id
return user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment