mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
FEATURE: Anonymize User. A way to remove a user but keep their topics and posts.
This commit is contained in:
parent
a68512bebf
commit
608647d02f
16 changed files with 401 additions and 100 deletions
|
@ -47,6 +47,10 @@ module UserGuardian
|
|||
end
|
||||
end
|
||||
|
||||
def can_anonymize_user?(user)
|
||||
is_staff? && !user.nil? && !user.staff?
|
||||
end
|
||||
|
||||
def can_check_emails?(user)
|
||||
is_admin? || (is_staff? && SiteSetting.show_email_on_profile)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue