diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-09-11 20:56:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 20:56:35 +0200 |
commit | 4e4b3a0c8e69a724e229f028896ce774ef26df3b (patch) | |
tree | d5e7e22746d286998972b138dafa260a2482e532 /app/controllers/settings/two_factor_authentication_methods_controller.rb | |
parent | e6b272e5c9c227cfbbe375a893f567c5967d669c (diff) |
Refactor settings controllers (#14767)
- Disallow suspended accounts from revoking sessions and apps - Allow suspended accounts to access exports
Diffstat (limited to 'app/controllers/settings/two_factor_authentication_methods_controller.rb')
-rw-r--r-- | app/controllers/settings/two_factor_authentication_methods_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/settings/two_factor_authentication_methods_controller.rb b/app/controllers/settings/two_factor_authentication_methods_controller.rb index 224d3a45c..205933ea8 100644 --- a/app/controllers/settings/two_factor_authentication_methods_controller.rb +++ b/app/controllers/settings/two_factor_authentication_methods_controller.rb @@ -4,14 +4,11 @@ module Settings class TwoFactorAuthenticationMethodsController < BaseController include ChallengableConcern - layout 'admin' + skip_before_action :require_functional! - before_action :authenticate_user! before_action :require_challenge!, only: :disable before_action :require_otp_enabled - skip_before_action :require_functional! - def index; end def disable |