Change automatic post deletion configuration to be accessible to redirected users (#20774)
Fixes #20550
This commit is contained in:
parent
7955d4b959
commit
00b2720ef0
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue