seed perm

This commit is contained in:
Orion Kindel 2023-07-19 18:57:31 -05:00
parent f333409000
commit b5740338f3
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -21,6 +21,24 @@ values
on conflict do nothing
;
do language plpgsql $$
declare
root int;
admins int;
begin
root := (public.usr_root()).id;
admins := (public.grp_admins()).id;
insert into public.perm
(path, owner_user, owner_group, owner_user_mode, owner_group_mode, everyone_mode)
values
('/communities/', root, admins, 'w', 'w', 'r')
, ('/users/', root, admins, 'w', 'w', 'w')
, ('/groups/', root, admins, 'w', 'w', 'w')
;
end;
$$;
-- human_uuid.object >>
insert into human_uuid.object (word)
values