BUGFIX: missed a key rename

BUGFIX: API spec not enabling CSRF
This commit is contained in:
Sam
2014-05-23 08:42:58 +10:00
parent cf254000cf
commit 67db561429
2 changed files with 10 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class Auth::DefaultCurrentUserProvider
# api has special rights return true if api was detected
def is_api?
current_user
@env[API_KEY]
@env[API_KEY_ENV]
end
def has_auth_cookie?