airtime menu now uses ACL with the custom viewscript.

This commit is contained in:
Naomi 2011-02-10 18:03:41 -05:00
parent 27b462d638
commit 36193d2948
4 changed files with 39 additions and 38 deletions

View file

@ -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;
}
/**