airtime menu now uses ACL with the custom viewscript.
This commit is contained in:
parent
27b462d638
commit
36193d2948
4 changed files with 39 additions and 38 deletions
|
@ -24,7 +24,7 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
|
|||
* @param $roleName
|
||||
* @return void
|
||||
**/
|
||||
public function __construct(Zend_Acl $aclData, $roleName = 'guest')
|
||||
public function __construct(Zend_Acl $aclData, $roleName = 'G')
|
||||
{
|
||||
$this->_errorPage = array('module' => 'default',
|
||||
'controller' => 'error',
|
||||
|
@ -71,8 +71,7 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
|
|||
|
||||
public function setRoleName($type)
|
||||
{
|
||||
$roles = array("A" => "admin", "H" => "host", "G" => "guest");
|
||||
$this->_roleName = $roles[$type];
|
||||
$this->_roleName = $type;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue