mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
For corporate keys, if APIKeyInfo returned OK assume its OK to use.
This commit is contained in:
@@ -134,6 +134,9 @@ def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=lo
|
|||||||
|
|
||||||
if not account.check_access(getattr(settings, 'EVE_API_MINIMUM_KEYMASK', 59638024)):
|
if not account.check_access(getattr(settings, 'EVE_API_MINIMUM_KEYMASK', 59638024)):
|
||||||
account.api_status = API_STATUS_INVALID_PERMISSIONS
|
account.api_status = API_STATUS_INVALID_PERMISSIONS
|
||||||
|
else:
|
||||||
|
# If its a corp key, and we've not errored so far, assume is OK.
|
||||||
|
account.api_status = API_STATUS_OK
|
||||||
|
|
||||||
# Remove deleted or traded characters
|
# Remove deleted or traded characters
|
||||||
newcharlist = [int(char['characterID']) for char in doc['result']['key']['characters']]
|
newcharlist = [int(char['characterID']) for char in doc['result']['key']['characters']]
|
||||||
|
|||||||
Reference in New Issue
Block a user