mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
BUGFIX: missed a key rename
BUGFIX: API spec not enabling CSRF
This commit is contained in:
@ -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?
|
||||
|
Reference in New Issue
Block a user