mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: limit shared chats to ACL grants (#26123)
This commit is contained in:
@@ -486,7 +486,12 @@ WHERE
|
||||
ELSE true
|
||||
END
|
||||
AND CASE
|
||||
WHEN @shared_only::boolean THEN chats_expanded.owner_id != @viewer_id::uuid
|
||||
WHEN @shared_only::boolean THEN
|
||||
chats_expanded.owner_id != @viewer_id::uuid
|
||||
AND (
|
||||
chats_expanded.user_acl ? (@shared_with_user_id::uuid)::text
|
||||
OR chats_expanded.group_acl ?| @shared_with_group_ids::text[]
|
||||
)
|
||||
ELSE true
|
||||
END
|
||||
AND CASE
|
||||
|
||||
Reference in New Issue
Block a user