mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -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 (
|
title NOT IN (
|
||||||
SELECT name
|
SELECT name
|
||||||
FROM badges
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue