mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
correct badge title revocation query
This commit is contained in:
parent
2d99d9b6cb
commit
be48dfbb8c
1 changed files with 2 additions and 1 deletions
|
@ -315,7 +315,8 @@ class BadgeGranter
|
|||
title NOT IN (
|
||||
SELECT name
|
||||
FROM badges
|
||||
WHERE allow_title AND enabled
|
||||
WHERE allow_title AND enabled AND
|
||||
badges.id IN (SELECT badge_id FROM user_badges ub where ub.user_id = users.id)
|
||||
)
|
||||
")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue