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