1
0
hs.hsadmin.ng/src/main/resources/db/changelog/113-test-customer-rbac.md
Michael Hoennig 7f418c12a1 uniform idnames (#28)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/28
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-04-02 12:01:37 +02:00

1.3 KiB

rbac customer

This code generated was by RbacViewMermaidFlowchartGenerator, do not amend manually.

%%{init:{'flowchart':{'htmlLabels':false}}}%%
flowchart TB

subgraph customer["`**customer**`"]
    direction TB
    style customer fill:#dd4901,stroke:#274d6e,stroke-width:8px

    subgraph customer:roles[ ]
        style customer:roles fill:#dd4901,stroke:white

        role:customer:OWNER[[customer:OWNER]]
        role:customer:ADMIN[[customer:ADMIN]]
        role:customer:TENANT[[customer:TENANT]]
    end

    subgraph customer:permissions[ ]
        style customer:permissions fill:#dd4901,stroke:white

        perm:customer:INSERT{{customer:INSERT}}
        perm:customer:DELETE{{customer:DELETE}}
        perm:customer:UPDATE{{customer:UPDATE}}
        perm:customer:SELECT{{customer:SELECT}}
    end
end

%% granting roles to users
user:creator ==>|XX| role:customer:OWNER

%% granting roles to roles
role:global:ADMIN ==>|XX| role:customer:OWNER
role:customer:OWNER ==> role:customer:ADMIN
role:customer:ADMIN ==> role:customer:TENANT

%% granting permissions to roles
role:global:ADMIN ==> perm:customer:INSERT
role:customer:OWNER ==> perm:customer:DELETE
role:customer:ADMIN ==> perm:customer:UPDATE
role:customer:TENANT ==> perm:customer:SELECT