Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Not expected, what can I do #67

Closed
YSHIDM opened this issue Dec 16, 2021 · 4 comments
Closed

[Question] Not expected, what can I do #67

YSHIDM opened this issue Dec 16, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@YSHIDM
Copy link

YSHIDM commented Dec 16, 2021

model:

[request_definition]
r = sub, dom, obj

[policy_definition]
p = sub, dom, obj, eft

[role_definition]
g = _, _, _
g2 = _, _

[policy_effect]
e = some(where (p.eft == allow)) && !some(where (p.eft == deny))

[matchers]
m = g(r.sub, p.sub, p.dom) && g2(r.dom, p.dom) && r.obj == p.obj

policy:

p, leader, cust, dept9, allow
p, leader, loan, dept8, allow

g, alice, leader, cust

g2, saveCust, cust

request(s):

alice, saveCust, dept9 ---> false (expected: true)

Online editor

A6FBC160-3479-4BB5-AE85-BEA3699EC1C3

@ghost ghost assigned hsluoyz Dec 16, 2021
@casbin-bot
Copy link
Member

@tangyang9464 @closetool @sagilio

@hsluoyz hsluoyz transferred this issue from casbin/casbin Dec 16, 2021
@casbin-bot
Copy link
Member

@casbin-bot casbin-bot added the question Further information is requested label Dec 16, 2021
@hsluoyz hsluoyz added bug Something isn't working and removed question Further information is requested labels Dec 16, 2021
@hsluoyz hsluoyz moved this from Casbin Easy Tasks to Node-Casbin Easy Tasks in Casbin Easy Tasks for Beginners/Student Applicants Dec 16, 2021
@YSHIDM
Copy link
Author

YSHIDM commented Dec 17, 2021

** the problem has been solved **

Shared at https://casbin.org/casbin-editor/#CCEG4ABQF
image

@hsluoyz
Copy link
Member

hsluoyz commented Dec 17, 2021

@YSHIDM how did you resolve it?

@hsluoyz hsluoyz closed this as completed Dec 17, 2021
@hsluoyz hsluoyz removed this from Node-Casbin Easy Tasks in Casbin Easy Tasks for Beginners/Student Applicants Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants