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
Want to get user permissions in resource with implicit use getImplicitResourcesForUser('alice') or getImplicitPermissionsForUser('alice') to get alice permissions in data2, but both are only return [[alice, data1, ALL, 15]]
Model
[request_definition]
r = sub, obj, attr, act
[policy_definition]
p = sub, obj, attr, act
[role_definition]
g = _, _
g2 = _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = g(r.sub, p.sub) && g2(r.obj, p.obj) && r.attr == p.attr && r.act == p.act
Background
Node-casbin: 5.30.0
Want to get user permissions in resource with implicit use getImplicitResourcesForUser('alice') or getImplicitPermissionsForUser('alice') to get alice permissions in data2, but both are only return [[alice, data1, ALL, 15]]
Model
Policy
Request
alice, data2, ALL, 15
Result
true
This example in editor is worked, but in code can't get permissions with data2.
Expected
The text was updated successfully, but these errors were encountered: