mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Pass request object to the gargoyle check
This commit is contained in:
@@ -97,7 +97,7 @@ def eveapi_update(request, userid, post_save_redirect='/', template='eve_api/upd
|
||||
def eveapi_del(request, userid, post_save_redirect='/'):
|
||||
""" Delete a EVE API key from a account """
|
||||
|
||||
if gargoyle.is_active('eve-keydelete'):
|
||||
if gargoyle.is_active('eve-keydelete', request):
|
||||
try:
|
||||
acc = EVEAccount.objects.get(pk=userid)
|
||||
except EVEAccount.DoesNotExist:
|
||||
|
||||
Reference in New Issue
Block a user