Change ability to navigate of unconfirmed users (#33209)
This commit is contained in:
parent
ca45f896dd
commit
796dd57e1b
6 changed files with 21 additions and 19 deletions
|
@ -70,7 +70,13 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def require_functional!
|
||||
redirect_to edit_user_registration_path unless current_user.functional?
|
||||
return if current_user.functional?
|
||||
|
||||
if current_user.confirmed?
|
||||
redirect_to edit_user_registration_path
|
||||
else
|
||||
redirect_to auth_setup_path
|
||||
end
|
||||
end
|
||||
|
||||
def skip_csrf_meta_tags?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue