Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

I believe this is also a bug or I'm doing something completely wrong, I copied the models, adapters and enforces from the casdoor default organization to my organization that I created to be able to access casvisor. but it doesn't access it, it simply only accesses it with the administrator user. On the demo site I tried to do the same thing but without success either.
model: "[request_definition]
r = subOwner, subName, method, urlPath, objOwner, objName

[policy_definition]
p = subOwner, subName, method, urlPath, objOwner, objName

[role_definition]
g = _, _

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

[matchers]
m = (r.subOwner == p.subOwner || p.subOwner == "") &&
(r.subName == p.subName p.subName == "
" r.subName != "anonymous" && p.subName == "!anonymous") &&
(r.method == p.method || p.method == "") &&
(r.urlPath == p.urlPath || p.urlPath == "
") &&
(r.objOwner == p.objOwner || p.objOwner == "") &&
(r.objName == p.objName p.objName == "
")
(r.subOwner == r.objOwner && r.subName == r.objName)"

image.png

image.png

If you remove the "is admin" from the user hermann from the demo site and try to access casvisor, you will have the same error.

1views
2users
1 minread
1 / 2
Jul 2024