Banned users are not returned as pending review users

This commit is contained in:
Neil Lalonde
2013-08-22 19:23:49 -04:00
parent 25e0c3eac1
commit 3b15e2e58e
3 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class AdminUserIndexQuery
when 'moderators' then @query.where('moderator = ?', true)
when 'blocked' then @query.blocked
when 'banned' then @query.banned
when 'pending' then @query.where('approved = false')
when 'pending' then @query.not_banned.where('approved = false')
end
end