mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Stop anyone requesting refreshes
This commit is contained in:
@@ -104,6 +104,7 @@ def eveapi_refresh(request, userid=0):
|
||||
except EVEAccount.DoesNotExist:
|
||||
pass
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user