mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Partially revert 4466fcf1bc
.
This commit is contained in:
@@ -25,7 +25,6 @@ class Auth::DefaultCurrentUserProvider
|
||||
# our current user, return nil if none is found
|
||||
def current_user
|
||||
return @env[CURRENT_USER_KEY] if @env.key?(CURRENT_USER_KEY)
|
||||
raise Discourse::ReadOnly if Discourse.pg_readonly_mode?
|
||||
|
||||
# bypass if we have the shared session header
|
||||
if shared_key = @env['HTTP_X_SHARED_SESSION_KEY']
|
||||
|
Reference in New Issue
Block a user