You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2023. It is now read-only.
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
# defines the workflow of authorization:
1. check user's role
2. check the resource which user is trying to access
3. check the action of user.
can u explain how dose this 1. check user's role work ?
why should we pass r.sub and p.sub info g() when we check if a user belongs to a group?
if a user do not belong to a group just return faild?
The text was updated successfully, but these errors were encountered:
txjjjjj
changed the title
how g(r.sub, p.sub) work?
How dose g(r.sub, p.sub) work?
Jan 21, 2020
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
# defines the workflow of authorization:
1. check user's role
2. check the resource which user is trying to access
3. check the action of user.
can u explain how dose this 1. check user's role work ?
why should we pass r.sub and p.sub info g() when we check if a user belongs to a group?
if a user do not belong to a group just return faild?
Hi, mmaotai. I haven't dived into the source code of Casbin yet but my instinct tells me that you're right.
can u explain how dose this
1. check user's role
work ?why should we pass r.sub and p.sub info g() when we check if a user belongs to a group?
if a user do not belong to a group just return faild?
The text was updated successfully, but these errors were encountered: