Hi,
I can't figure out how to apply allow/deny for index.
If I add index as allow for guest, guest gets access everywhere
I like 'guest' to have access everywhere except in the safe module only to login and registration.
What am I doing wrong here?
My dir structure:
Code:
Application
Default -> indexController
Modules
safe -> indexController
tickets -> indexController
admin -> indexController
etc...
PHP Code:
$this->add(new Zend_Acl_Resource('index'));
$this->add(new Zend_Acl_Resource('safe'));
$this->add(new Zend_Acl_Resource('login'), 'safe');
$this->add(new Zend_Acl_Resource('registration'), 'safe');
$this->addRole(new Zend_Acl_Role('guest'));
$this->deny('guest', 'safe', NULL);
$this->allow('guest', 'registration');
$this->allow('guest', 'login');
$this->allow('guest','index');
$this->addRole(new Zend_Acl_Role('member'));
$this->allow('member', 'safe', NULL);
$this->addRole(new Zend_Acl_Role('admin'));
$this->allow('admin');