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='/'):
|
def eveapi_del(request, userid, post_save_redirect='/'):
|
||||||
""" Delete a EVE API key from a account """
|
""" Delete a EVE API key from a account """
|
||||||
|
|
||||||
if gargoyle.is_active('eve-keydelete'):
|
if gargoyle.is_active('eve-keydelete', request):
|
||||||
try:
|
try:
|
||||||
acc = EVEAccount.objects.get(pk=userid)
|
acc = EVEAccount.objects.get(pk=userid)
|
||||||
except EVEAccount.DoesNotExist:
|
except EVEAccount.DoesNotExist:
|
||||||
|
|||||||
Reference in New Issue
Block a user