Exemplo n.º 1
0
 public function cancelCurrentShowAction()
 {
     $userInfo = Zend_Auth::getInstance()->getStorage()->read();
     $user = new User($userInfo->id);
     if ($user->isUserType(array(UTYPE_ADMIN, UTYPE_PROGRAM_MANAGER))) {
         $showInstanceId = $this->_getParam('id');
         $show = new ShowInstance($showInstanceId);
         $show->clearShow();
         $show->deleteShow();
     }
 }