Skip to content

Only allow operation if user is signed in. #1016

Answered by inian
nailuj29 asked this question in Questions
Discussion options

You must be logged in to vote

Try something like this @nailuj29gaming

create policy "Any authenticated user has access to movies."
  on movies for select using ( auth.role() = 'authenticated' );

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nailuj29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants