|
|||
|
Hey guys,
Using Zend_Acl and I have run into a little problem. Firstly I will just show you the output of my debugging code: Code:
Add role: guest with parent: Add role: member with parent: Add role: administrator with parent: member Add resource: admin with parent: Add resource: user with parent: Allow to Role: for Resource: with Exceptions: Deny to Role: for Resource: user with Exceptions: Deny to Role: for Resource: admin with Exceptions: Allow to Role: guest for Resource: user with Exceptions: login, fetchpassword, register Allow to Role: administrator for Resource: admin with Exceptions: Allow to Role: member for Resource: user with Exceptions: Administrator denied to admin PHP Code:
In the $allow_deny loop, the 'access' key is 1 for allow and 0 for deny. Roles, Resources and Allow/Deny is all loaded from a database. The method covertCSV() simply converts a comma-seprarate values string into and array. It explodes by ', '. So my quest is, why isn't admin allow (see the bold)? It also happens with other variations as well. Cheers, Cobby |
|
|||
|
Found the problem:
PHP Code:
PHP Code:
Cobby |
![]() |
| Thread Tools | |
| Display Modes | |
|
|