Skip to content

Conversation

@lionzeye
Copy link
Contributor

Not passing an Action object to the isAuthorized() function results in an error:

Catchable fatal error: Argument 3 passed to Xacmlphp\Enforcer::isAuthorized() must be an instance of Xacmlphp\Action, none given

making the Action parameter optional solves this.

@lionzeye
Copy link
Contributor Author

Another option would be to change the example in the README to always pass a null Action to the method, but that requires the user to perform that extra step of initializing a null object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant