check exception in check_user
This commit is contained in:
@@ -5,7 +5,6 @@ class BaseOrigamiController < ActionController::Base
|
||||
before_action :check_user
|
||||
|
||||
#before_action :check_installation
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
helper_method :shop_detail, :current_token
|
||||
|
||||
@@ -23,6 +22,10 @@ class BaseOrigamiController < ActionController::Base
|
||||
}.to_json
|
||||
end
|
||||
else
|
||||
if ENV["SERVER_MODE"] != 'cloud'
|
||||
protect_from_forgery with: :exception
|
||||
end
|
||||
|
||||
if current_user.nil?
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user