mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't allow staff to approve users with unverified emails
This commit is contained in:
@@ -95,7 +95,7 @@ class AdminUserIndexQuery
|
||||
when 'moderators' then @query.where(moderator: true)
|
||||
when 'blocked' then @query.blocked
|
||||
when 'suspended' then @query.suspended
|
||||
when 'pending' then @query.not_suspended.where(approved: false)
|
||||
when 'pending' then @query.not_suspended.where(approved: false, active: true)
|
||||
when 'suspect' then suspect_users
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user