Skip to content

Commit 0a83cec

Browse files
authored
migration: RSL - allow cron to insert data (#57)
1 parent 3fc6b5e commit 0a83cec

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
-- allow authenticated users (cron) to save to the database
2+
3+
CREATE POLICY "insert_auth"
4+
ON public.listened
5+
FOR SELECT
6+
USING (true);
7+
8+
CREATE POLICY "insert_auth"
9+
ON public.hooman
10+
FOR INSERT
11+
TO authenticated
12+
WITH CHECK (true);
13+
14+
CREATE POLICY "insert_auth"
15+
ON public.hooman_artist
16+
FOR INSERT
17+
TO authenticated
18+
WITH CHECK (true);
19+
20+
CREATE POLICY "insert_auth"
21+
ON public.artist
22+
FOR INSERT
23+
TO authenticated
24+
WITH CHECK (true);

0 commit comments

Comments
 (0)