Revxrsal
04/14/2022, 7:53 PMHarryET
04/14/2022, 8:08 PMRevxrsal
04/15/2022, 1:53 AMif (select role from roles where uid = auth.uid() limit 1) = 'instructor'
Revxrsal
04/15/2022, 1:55 AMpocin
04/15/2022, 9:00 AMexists(select 1 from roles where uid=auth.uid() and role='instructor')
Revxrsal
04/15/2022, 10:40 AMRevxrsal
04/15/2022, 11:43 AMsql
exists(select 1 from profiles where uid=auth.uid() and (is_instructor=true or is_admin=true))
that should too work right?HarryET
04/15/2022, 1:56 PMRevxrsal
04/15/2022, 2:54 PM