Reputation: 1
R0
: Users can access data belonging to their department.R1
: Users can access data from all departments.U0
has role R0
.U0
belongs to department D0
.U1
has role R1
.U1
belongs to department D1
.Data0
belongs to department D0
.Data1
belongs to department D1
.User | Data | Result |
---|---|---|
U0 |
Data0 |
Allowed |
U0 |
Data1 |
Denied |
U1 |
Data0 |
Allowed |
U1 |
Data1 |
Allowed |
I tried to define rules using Casbin, but I failed.
Upvotes: 0
Views: 14