Closed mynameisny closed 2 years ago
@tangyang9464 @imp2002
Verified, I will fix it.
I took a look and found that this is not a bug, acutrally addGroupingPolicy()
is a role inheritance, so in model.conf
should include a [role_definition]
just look like follows.
[request_definition]
r = sub, obj, act
[policy_definition]
p = sub, obj, act
[role_definition]
g = _, _
[policy_effect]
e = some(where (p.eft == allow))
[matchers]
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
Closed as resolved
Thank you very much! @hsluoyz
When using this interface enforcer. addGroupingPolicy ("member", "group") to add user to an group, occured java.lang.NullPointerException:
dependencies pom
model.conf
Application