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
|
@ -237,7 +237,11 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def functional?
|
||||
confirmed? && approved? && !disabled? && !account.suspended? && !account.memorial? && account.moved_to_account_id.nil?
|
||||
functional_or_moved? && account.moved_to_account_id.nil?
|
||||
end
|
||||
|
||||
def functional_or_moved?
|
||||
confirmed? && approved? && !disabled? && !account.suspended? && !account.memorial?
|
||||
end
|
||||
|
||||
def unconfirmed?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue