Closed ggilley closed 7 years ago
is HasAPIAccess, you should make sure that api_key is not None. Otherwise, if you don't pass in an api key, permission is always granted.
You can verify the failure by changing test_admin.py to pass in 'HTTP_WRONG_API_KEY' instead of 'HTTP_API_KEY'.
Hmm... It seems to work correctly. Maybe it only happens if you have an empty table?
is HasAPIAccess, you should make sure that api_key is not None. Otherwise, if you don't pass in an api key, permission is always granted.
You can verify the failure by changing test_admin.py to pass in 'HTTP_WRONG_API_KEY' instead of 'HTTP_API_KEY'.