mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: tag groups were not visible to allowed group members (#17183)
https://meta.discourse.org/t/tags-in-tag-groups-not-visible-to-assigned-user-group/230025/
This commit is contained in:
@@ -95,10 +95,10 @@ class TagGroup < ActiveRecord::Base
|
||||
OR
|
||||
id NOT IN (SELECT tag_group_id FROM category_tag_groups)
|
||||
)
|
||||
AND id IN (SELECT tag_group_id FROM tag_group_permissions WHERE group_id = ?)
|
||||
AND id IN (SELECT tag_group_id FROM tag_group_permissions WHERE group_id IN (?))
|
||||
SQL
|
||||
|
||||
TagGroup.where(filter_sql, guardian.allowed_category_ids, Group::AUTO_GROUPS[:everyone])
|
||||
TagGroup.where(filter_sql, guardian.allowed_category_ids, DiscourseTagging.permitted_group_ids(guardian))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user