introduce separate database-schemas base+rbac #103

Merged
hsh-michaelhoennig merged 54 commits from introduce-separate-database-schemas-base-and-rbac into master 2024-09-16 15:36:38 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 32c88cef21 - Show all commits

View File

@ -4,7 +4,7 @@
--changeset rbac-user-grant-GRANT-ROLE-TO-USER:1 endDelimiter:--// --changeset rbac-user-grant-GRANT-ROLE-TO-USER:1 endDelimiter:--//
-- ---------------------------------------------------------------------------- -- ----------------------------------------------------------------------------
create or replace function assumedRoleUuid() create or replace function rbac.assumedRoleUuid()
returns uuid returns uuid
stable -- leakproof stable -- leakproof
language plpgsql as $$ language plpgsql as $$

View File

@ -150,7 +150,7 @@ create or replace function insertRbacGrant()
declare declare
newGrant RbacGrants_RV; newGrant RbacGrants_RV;
begin begin
call grantRoleToUser(assumedRoleUuid(), new.grantedRoleUuid, new.userUuid, new.assumed); call grantRoleToUser(rbac.assumedRoleUuid(), new.grantedRoleUuid, new.userUuid, new.assumed);
select grv.* select grv.*
from RbacGrants_RV grv from RbacGrants_RV grv
where grv.userUuid=new.userUuid and grv.grantedRoleUuid=new.grantedRoleUuid where grv.userUuid=new.userUuid and grv.grantedRoleUuid=new.grantedRoleUuid