layout "site"
- before_action :disable_terms_redirect
- before_action :authorize_web
+ before_action -> { authorize_web(:skip_terms => true) }
before_action :set_locale
before_action :check_database_readable
if current_user.terms_agreed?
# Already agreed to terms, so just show settings
- redirect_to edit_account_path
+ redirect_to account_path
end
end
end
referer = safe_referer(params[:referer]) if params[:referer]
- redirect_to referer || edit_account_path
+ redirect_to referer || account_path
end
end
end