diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-17 10:55:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 10:55:23 +0100 |
commit | 00b2720ef08e91bee88cd24da7eb2ba836a7a10f (patch) | |
tree | aef293a859fb1363f458bfddb00dcd94040c4a46 /app/controllers | |
parent | 7955d4b9592a099a8da3374175461b3aa3057c61 (diff) |
Change automatic post deletion configuration to be accessible to redirected users (#20774)
Fixes #20550
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/statuses_cleanup_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/statuses_cleanup_controller.rb b/app/controllers/statuses_cleanup_controller.rb index be234cdcb..e912967fd 100644 --- a/app/controllers/statuses_cleanup_controller.rb +++ b/app/controllers/statuses_cleanup_controller.rb @@ -19,6 +19,10 @@ class StatusesCleanupController < ApplicationController # Do nothing end + def require_functional! + redirect_to edit_user_registration_path unless current_user.functional_or_moved? + end + private def set_policy |