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 extends privileges problem. #10134

Closed
Michal-St opened this issue Apr 22, 2015 · 3 comments
Closed

ACL extends privileges problem. #10134

Michal-St opened this issue Apr 22, 2015 · 3 comments

Comments

@Michal-St
Copy link

$acl->addRole($guest);
$acl->addRole($basic_user, $guest);
$acl->addRole($user, $basic_user);
$acl->addRole($admin, $user);

When I migrate to Phalcon 2.0 I realise that roles can extend privileges only for first parent. I have resources avaible for guest, I'm logged using 'admin' role and ACL return false. Each privileges for user are avaible for admin.

@Michal-St Michal-St changed the title ACL extends privileges. ACL extends privileges problem. Apr 22, 2015
@KoriSeng
Copy link
Contributor

found it.
basically current it is set so that you can only check inherit for a single level.

i am not sure if its intentional or anything, but i could provide u a patch that allows deep inherit

@sersh88
Copy link

sersh88 commented Apr 26, 2015

Same here. Please, solve this. I think it should work as expected - extend privileges in all levels.

@Green-Cat
Copy link
Contributor

@7thcubic Pull requests are always welcome.

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

5 participants