app/controllers/application_controller.rb
# CSRF attacks: raise an exception.
CSRF attacks: raise an exception.
CSRF attacks : raise an exception .
def ensure_access
    unless current_user.is_member? || current_user.customer.present?
      raise Exception.new(I18n.t('sso.not_authorized'))
    end
  end
def ensure_access unless current_user . is_member? || current_user . customer . present? raise Exception . new ( I18n . t ( 'sso.not_authorized' ) ) end end
CSRF attacks: raise an exception.
CSRF attacks : raise an exception .