mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
work in progress, add fidelity to category group permissions (full, create posts, readonly)
This commit is contained in:
parent
8d947535a8
commit
ecf17cfebb
38 changed files with 349 additions and 126 deletions
|
@ -113,11 +113,11 @@ class TopicTrackingState
|
|||
((#{unread}) OR (#{new})) AND
|
||||
(topics.visible OR u.admin OR u.moderator) AND
|
||||
topics.deleted_at IS NULL AND
|
||||
( category_id IS NULL OR NOT c.secure OR category_id IN (
|
||||
( category_id IS NULL OR NOT c.read_restricted OR category_id IN (
|
||||
SELECT c2.id FROM categories c2
|
||||
JOIN category_groups cg ON cg.category_id = c2.id
|
||||
JOIN group_users gu ON gu.user_id = u.id AND cg.group_id = gu.group_id
|
||||
WHERE c2.secure )
|
||||
WHERE c2.read_restricted )
|
||||
)
|
||||
|
||||
SQL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue