mirror of https://github.com/kortix-ai/suna.git
Merge pull request #466 from tnfssc/feat/admin-view-access
This commit is contained in:
commit
730f481f58
|
@ -0,0 +1,25 @@
|
||||||
|
DROP POLICY IF EXISTS "Give read only access to internal users" ON threads;
|
||||||
|
|
||||||
|
CREATE POLICY "Give read only access to internal users" ON threads
|
||||||
|
FOR SELECT
|
||||||
|
USING (
|
||||||
|
((auth.jwt() ->> 'email'::text) ~~ '%@kortix.ai'::text)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
DROP POLICY IF EXISTS "Give read only access to internal users" ON messages;
|
||||||
|
|
||||||
|
CREATE POLICY "Give read only access to internal users" ON messages
|
||||||
|
FOR SELECT
|
||||||
|
USING (
|
||||||
|
((auth.jwt() ->> 'email'::text) ~~ '%@kortix.ai'::text)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
DROP POLICY IF EXISTS "Give read only access to internal users" ON projects;
|
||||||
|
|
||||||
|
CREATE POLICY "Give read only access to internal users" ON projects
|
||||||
|
FOR SELECT
|
||||||
|
USING (
|
||||||
|
((auth.jwt() ->> 'email'::text) ~~ '%@kortix.ai'::text)
|
||||||
|
);
|
Loading…
Reference in New Issue