-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix API access protection check #5053
Conversation
why ? :-) |
I was stalled in my devs while trying to use API features with external users.
and after debugging deeply, it appears that the require's override in annotation sets a string in the variable, not an array as expect by the initial code. For the environmen I use : I could propose an alternative fix with a split of the |
Don't you think this change (having $requires that is a string instead of array may be a result of the RC6 version ? If yes, may be we can fix by adding a $requirefortest = static::$requires Can you test this on your case so we have something that works in all cases. |
@eldy I think having $requires that is a string instead of array is a standard comportement when it's overrided in annotations. For the PHP7 compliance, I've PR'ed Restler RC6 in #5057. Regards |
To reduce risk of introducing other problem i pushed i fix like i suggested. |
Fix API Access Control bogus implementation