draft for debitor permission grant model (reduced)

This commit is contained in:
Michael Hoennig 2024-02-07 12:31:09 +01:00
parent a71a7b308f
commit 2bae7dee2f

View File

@ -73,30 +73,27 @@ subgraph internal[ ]
subgraph debitor
direction TB
role:debitor.owner[[debitor.owner]]
--> perm:debitor.*{{debitor.*}}
role:debitor.owner -.==.- role:debitorRelationship.owner
role:debitorRelationship.owner[[debitor.owner]]
%% permissions
==> perm:debitor.*{{debitor.*}}
role:debitor.admin[[debitor.admin]]
role:debitor.owner --> role:debitor.admin
--> perm:debitor.edit{{debitor.edit}}
role:debitor.admin -.==.- role:debitorRelationship.admin
role:debitor.admin ==> role:partnerRelationship.agent
role:debitorRelationship.admin[[debitor.admin]]
%% permissions
==> perm:debitor.edit{{debitor.edit}}
%% incoming
role:partnerRelationship.admin ==> role:debitorRelationship.admin
%% outgoing
role:debitorRelationship.admin ==> role:partnerRelationship.agent
role:debitor.agent[[debitor.agent]]
role:debitor.admin --> role:debitor.agent
role:debitor.agent -.==.- role:debitorRelationship.agent
role:debitor.agent ==> role:partnerRelationship.tenant
role:debitorRelationship.agent[[debitor.agent]]
%% incoming
role:partnerRelationship.agent ==> role:debitorRelationship.agent
%% outgoing
role:debitorRelationship.agent ==> role:partnerRelationship.tenant
role:debitor.tenant[[debitor.tenant]]
--> perm:debitor.view{{debitor.view}}
role:debitor.agent --> role:debitor.tenant
role:debitor.tenant -.==.- role:debitorRelationship.tenant
role:debitorRelationship.tenant[[debitor.tenant]]
==> perm:debitor.view{{debitor.view}}
role:partnerRelationship.admin ==> role:debitor.admin
role:partnerRelationship.agent ==> role:debitor.agent
end
end