mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fix task to pull the correct user
This commit is contained in:
@@ -16,6 +16,8 @@ signals.post_delete.connect(eveapi_deleted, sender=EVEAccount)
|
|||||||
def update_user_access(user):
|
def update_user_access(user):
|
||||||
""" Process all corporate and alliance entries and correct access groups """
|
""" 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
|
# Create a list of all Corp and Alliance groups
|
||||||
corpgroups = []
|
corpgroups = []
|
||||||
for corp in EVEPlayerCorporation.objects.filter(group__isnull=False):
|
for corp in EVEPlayerCorporation.objects.filter(group__isnull=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user