diff --git a/sso/tasks.py b/sso/tasks.py index e3d7b96..3202e05 100644 --- a/sso/tasks.py +++ b/sso/tasks.py @@ -16,6 +16,8 @@ signals.post_delete.connect(eveapi_deleted, sender=EVEAccount) def update_user_access(user): """ Process all corporate and alliance entries and correct access groups """ + user = User.objects.get(id=user) + # Create a list of all Corp and Alliance groups corpgroups = [] for corp in EVEPlayerCorporation.objects.filter(group__isnull=False):