Relationships
dashboard:project-progress#view@role:admin#assignee dashboard:project-progress#view@role:member#assignee dashboard:project-progress#edit@role:admin#assignee task:website-design-review#view@role:admin#assignee task:website-design-review#view@role:member#assignee task:website-design-review#edit@role:admin#assignee Together with these relationships and the model, a view has been created for the project-progress dashboard and the website-design-review task 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:project-progress? gives Allow result since the user:1 is assignee of role:member and role:member has dashboard:project-progress#view permission.
Can user:1 view task:website-design-review? gives Denied result since the user:1 is not assignee of role:admin.