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

ACL Resource bug with numeric values #1513

Closed
alecksey opened this issue Nov 4, 2013 · 1 comment
Closed

ACL Resource bug with numeric values #1513

alecksey opened this issue Nov 4, 2013 · 1 comment

Comments

@alecksey
Copy link

alecksey commented Nov 4, 2013

Code:
$acl = new \Phalcon\Acl\Adapter\Memory();
$acl->setDefaultAction(\Phalcon\Acl::DENY);
$acl->addRole(new \Phalcon\Acl\Role('11'));
$acl->addResource(new \Phalcon\Acl\Resource('11'), array('index'));
Error on add resource: Resource '11' does not exist in ACL

Phalcon version: 1.2.4

If replace Resource from '11' to 'res11' all works fine

phalcon pushed a commit that referenced this issue Nov 7, 2013
Fix #1513 Use zend_symtable_update instead of  zend_hash_update
@ghost
Copy link

ghost commented Dec 11, 2013

Can this one be closed?

@phalcon phalcon closed this as completed Dec 11, 2013
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

No branches or pull requests

1 participant