silentworks
12/27/2022, 10:08 AMsilentworks
12/27/2022, 11:20 AMClay
12/27/2022, 5:04 PMDeepITM
12/27/2022, 5:33 PMgaryaustin
12/27/2022, 5:56 PMDeepITM
12/27/2022, 6:25 PMfxs
12/27/2022, 7:43 PMmadjar
12/28/2022, 10:13 AMmadjar
12/28/2022, 10:54 AMmadjar
12/28/2022, 10:54 AMBertalicious
12/28/2022, 12:02 PMBertalicious
12/28/2022, 12:08 PMmadjar
12/28/2022, 12:11 PMsilentworks
12/28/2022, 12:15 PMTaqi
12/28/2022, 12:48 PMCriminelis
12/28/2022, 1:15 PMJuanFcoRomero
12/28/2022, 2:03 PMchrister
12/28/2022, 4:14 PMAlbin
12/28/2022, 4:21 PMAlbin
12/28/2022, 4:21 PMAlbin
12/28/2022, 4:21 PMelamandeep
12/29/2022, 6:59 AMelamandeep
12/29/2022, 6:59 AMMaheshtheDev
12/29/2022, 7:05 AMMaheshtheDev
12/29/2022, 7:05 AMCrownie
12/29/2022, 9:01 AMError when tokenizing at line 6 column 1 near "$$" in "[$$] language"
sql
create function public.is_admin(user_id uuid)
returns bool as $$
begin
return exists (select 1 from profiles where profiles.id = user_id and profiles.role = "admin");
end;
$$ language plpgsql security definer;
Gaëtan 🐈
12/29/2022, 10:34 AMXSHAYANX
12/29/2022, 11:32 AMGaëtan 🐈
12/29/2022, 11:36 AM