From a975e143885d501ca5057b05d9c692fd55948c17 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 29 Oct 2010 13:06:02 +0100 Subject: [PATCH] Refresh the key owner's permissions, not the requesters --- sso/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sso/views.py b/sso/views.py index 5a1a8e0..cb33d53 100644 --- a/sso/views.py +++ b/sso/views.py @@ -106,7 +106,7 @@ def eveapi_refresh(request, userid=0): else: if acc.user == request.user or request.user.is_superuser: import_eve_account(acc.api_key, acc.api_user_id, force_cache=True) - request.user.get_profile().update_access() + acc.user.get_profile().update_access() if request.is_ajax(): acc = EVEAccount.objects.get(id=userid)