mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:37:44 +08:00
FIX: Don't allow staff to approve users with unverified emails
This commit is contained in:
@ -176,7 +176,7 @@ class Guardian
|
||||
|
||||
# Can we approve it?
|
||||
def can_approve?(target)
|
||||
is_staff? && target && not(target.approved?)
|
||||
is_staff? && target && target.active? && not(target.approved?)
|
||||
end
|
||||
|
||||
def can_activate?(target)
|
||||
|
Reference in New Issue
Block a user