truby
03/26/2022, 7:40 AM(if
auth.role() = 'authenticated'
and
is_draft = false
then
true;
elsif
auth.uid() = user_id
then
true;
else
false;
end if;
)
truby
03/26/2022, 7:41 AMtruby
03/26/2022, 7:41 AMAvin
03/26/2022, 7:45 AMauth.uid() = user_id or (auth.role() = 'authenticated' and is_draft = false)
truby
03/26/2022, 7:54 AM