-improved now-playing page

This commit is contained in:
mkonecny 2011-01-25 18:41:59 -05:00
parent ac638c2e39
commit c109fb5f01
7 changed files with 54 additions and 36 deletions

View file

@ -110,8 +110,11 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$controller = strtolower($request->getControllerName());
if (!Zend_Auth::getInstance()->hasIdentity()){
if ($controller == 'api'){
$this->setRoleName("G");
} else if (!Zend_Auth::getInstance()->hasIdentity()){
if ($controller !== 'login') {