mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Do not allow anonymous users to be anonymized (#20776)
This commit is contained in:
@@ -74,7 +74,7 @@ module UserGuardian
|
||||
end
|
||||
|
||||
def can_anonymize_user?(user)
|
||||
is_staff? && !user.nil? && !user.staff?
|
||||
is_staff? && !user.nil? && !user.staff? && !user.email.ends_with?(UserAnonymizer::EMAIL_SUFFIX)
|
||||
end
|
||||
|
||||
def can_merge_user?(user)
|
||||
|
||||
Reference in New Issue
Block a user