Skip to content
New issue

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

Action should be optional #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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