conditional RBAC update for debitor
This commit is contained in:
parent
bb3f979273
commit
d62fcd45cf
@ -113,9 +113,11 @@ declare
|
|||||||
newRefundBankAccount hs_office_bankaccount;
|
newRefundBankAccount hs_office_bankaccount;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
delete from rbacgrants g where g.grantedbytriggerof = OLD.uuid;
|
if NEW.refundbankaccountuuid <> OLD.refundbankaccountuuid
|
||||||
|
or NEW.debitorreluuid <> OLD.debitorreluuid then
|
||||||
call buildRbacSystemForHsOfficeDebitor(NEW);
|
delete from rbacgrants g where g.grantedbytriggerof = OLD.uuid;
|
||||||
|
call buildRbacSystemForHsOfficeDebitor(NEW);
|
||||||
|
end if;
|
||||||
end; $$;
|
end; $$;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user