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