mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Convert a lot of :a => b to a: b and bring peace to the world
This commit is contained in:
@ -217,7 +217,7 @@ class ApplicationController < ActionController::Base
|
||||
def check_restricted_access
|
||||
# note current_user is defined in the CurrentUser mixin
|
||||
if SiteSetting.access_password.present? && cookies[:_access] != SiteSetting.access_password
|
||||
redirect_to request_access_path(:return_path => request.fullpath)
|
||||
redirect_to request_access_path(return_path: request.fullpath)
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user