mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
correct badge title revocation query
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user