Skip to content

Commit cb02fa1

Browse files
authored
Merge pull request kortix-ai#221 from kubet/feat/init-share-modal
Feat/init share modal
2 parents 12704f2 + 6a464d4 commit cb02fa1

File tree

6 files changed

+675
-417
lines changed

6 files changed

+675
-417
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
DROP POLICY IF EXISTS thread_select_policy ON threads;
2+
3+
CREATE POLICY thread_select_policy ON threads
4+
FOR SELECT
5+
USING (
6+
is_public IS TRUE
7+
OR basejump.has_role_on_account(account_id) = true
8+
OR EXISTS (
9+
SELECT 1 FROM projects
10+
WHERE projects.project_id = threads.project_id
11+
AND (
12+
projects.is_public IS TRUE
13+
OR basejump.has_role_on_account(projects.account_id) = true
14+
)
15+
)
16+
);

0 commit comments

Comments
 (0)