You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Phalcon\Acl\Adapter\Memory, when you add rules to the ACL, depending on if you specify the "access" parameter of methods "allow" and "deny" as string or array of strings, the result of method "isAllowed" is later different.
In Phalcon\Acl\Adapter\Memory, when you add rules to the ACL, depending on if you specify the "access" parameter of methods "allow" and "deny" as string or array of strings, the result of method "isAllowed" is later different.
First example with expected result.
Now same example, but this time I supply access parameter to deny method as an array instead.
Result should be the same, but it's not.
I think problem lies in memory.zep on line 384
https://github.com/phalcon/cphalcon/blob/phalcon-v2.0.9/phalcon/acl/adapter/memory.zep#L384
Compared to line 413, a ! (negation) is missing before isset.
Tested in 2.0.1 and 2.0.9.
Ps. Reference to Phalcon\Acl\Adapter\Memory::_allowOrDeny in Phalcon\Acl\Adapter\Memory::deny, is in wrong case: "_allowordeny". Ds.
The text was updated successfully, but these errors were encountered: