mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:52:45 +08:00
correct badge title revocation query
This commit is contained in:
parent
2d99d9b6cb
commit
be48dfbb8c
|
@ -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 New Issue
Block a user