FIX: Don't allow staff to approve users with unverified emails

This commit is contained in:
Robin Ward
2017-09-04 12:55:23 -04:00
parent 153eca23e3
commit db929e58fc
5 changed files with 14 additions and 7 deletions

View File

@ -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)