We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unable to get property "Owner" of non-object "r_obj".
下面是 model 定义
model
[request_definition] r = sub, obj, act [policy_definition] p = sub, obj, act [policy_effect] e = some(where (p.eft == allow)) [matchers] m = r.sub == r.obj.Owner
$canVisit = Enforcer::enforce("alice", "{Owner: 'alice'}", "read");
The text was updated successfully, but these errors were encountered:
enforece 支持对象,或者数组的形式传入,而不是字符串
$class = new stdClass(); // 新建一个stdClass $class->Owner = "alice"; $canVisit = Enforcer::enforce("alice",$class, "read"); // 传入对象而非字符串 json 对象 dd($canVisit);
Sorry, something went wrong.
No branches or pull requests
Unable to get property "Owner" of non-object "r_obj".
下面是
model
定义The text was updated successfully, but these errors were encountered: