mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-04-26 00:12:48 -05:00
13 lines
235 B
SQL
13 lines
235 B
SQL
CREATE OR REPLACE FUNCTION public.is_archiver()
|
|
RETURNS boolean
|
|
LANGUAGE sql
|
|
STABLE
|
|
AS $function$
|
|
select
|
|
coalesce(get_my_claim('archiver')::bool,false)
|
|
or
|
|
coalesce(get_my_claim('claims_admin')::bool,false)
|
|
$function$
|
|
;
|
|
|