Relationships
dashboard:145#view@role:admin#assignee dashboard:145#view@role:member#assignee dashboard:145#edit@role:admin#assignee task:5621#view@role:admin#assignee task:5621#view@role:member#assignee task:5621#edit@role:admin#assignee Together with these relationships and the model, a view has been created for the dashboard:145 and the task:5621 as shown in the table below.
Subsequently, you can make authorization decisions by assigning these custom roles to the users that you have created.
role:member#assignee@user:1
When we write these relationship, the final situation will be as follows.
Can user:1 view dashboard:145?
POST /v1/permissions/check
user:1 is assignee of role:member and role:member has dashboard:145#view permission.
Can user:1 view task:5621?
POST /v1/permissions/check
user:1 is not assignee of role:admin.