mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Clear our the groups before re-adding permissions
This commit is contained in:
@@ -34,6 +34,7 @@ class SSOUser(models.Model):
|
||||
def update_access(self):
|
||||
""" Steps through each Eve API registered to the user and updates their group
|
||||
access accordingly """
|
||||
self.user.groups.clear()
|
||||
for eacc in EVEAccount.objects.filter(user=self.user):
|
||||
for char in eacc.characters.all():
|
||||
if char.corporation.group:
|
||||
|
||||
Reference in New Issue
Block a user