cooronx opened a new pull request, #1731:
URL: https://github.com/apache/casbin/pull/1731
```conf
[type_definition]
user = user:
role = role:
```
```conf
p, role:data2_admin, data2, read
p, role:data2_admin, data2, write
p, user:bob, data2, write
g, user:alice, role:data2_admin
```
When type_definition is configured, Casbin will:
- validate type definitions during model loading
- validate policy mutations and loaded policy lines against the configured
user/role prefixes
- classify principals by type when returning GetAllUsers, GetAllRoles, and
GetImplicitUsersForPermission
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]