diff options
author | 2019-10-20 16:29:03 +0100 | |
---|---|---|
committer | 2019-10-20 16:29:03 +0100 | |
commit | b9e759e11c53cf5de0e98efe810a9020a8d1d3cc (patch) | |
tree | cd1f3ae2fe02ae2d42074610f20794a5b0ab7bcd /pydis_site/apps/home/signals.py | |
parent | Add is_staff to role mappings, and the logic to go with it (diff) |
Tests for the new signal listener is_staff changes
Diffstat (limited to 'pydis_site/apps/home/signals.py')
-rw-r--r-- | pydis_site/apps/home/signals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/home/signals.py b/pydis_site/apps/home/signals.py index 76d29631..43e861d2 100644 --- a/pydis_site/apps/home/signals.py +++ b/pydis_site/apps/home/signals.py @@ -192,7 +192,7 @@ class AllauthSignalListener: account.user.groups.add(instance.group) if instance.is_staff and not account.user.is_staff: - account.user.is_staff = True + account.user.is_staff = instance.is_staff account.user.save(update_fields=("is_staff", )) else: discord_user = DiscordUser.objects.get(id=int(account.uid)) |