admin can do anything a host of a show can

This commit is contained in:
naomiaro 2011-02-11 00:10:56 -05:00
parent 00b70c5144
commit 5468db39e8
1 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ class ScheduleController extends Zend_Controller_Action
$user = new User($userInfo->id); $user = new User($userInfo->id);
$show = new ShowInstance($showInstanceId); $show = new ShowInstance($showInstanceId);
if($user->isHost($show->getShowId())) { if($user->isHost($show->getShowId()) || $user->isAdmin()) {
$show->scheduleShow(array($plId)); $show->scheduleShow(array($plId));
} }
@ -199,7 +199,7 @@ class ScheduleController extends Zend_Controller_Action
$user = new User($userInfo->id); $user = new User($userInfo->id);
$show = new ShowInstance($showInstanceId); $show = new ShowInstance($showInstanceId);
if($user->isHost($show->getShowId())) if($user->isHost($show->getShowId()) || $user->isAdmin())
$show->clearShow(); $show->clearShow();
} }
@ -229,7 +229,7 @@ class ScheduleController extends Zend_Controller_Action
$user = new User($userInfo->id); $user = new User($userInfo->id);
$show = new ShowInstance($showInstanceId); $show = new ShowInstance($showInstanceId);
if($user->isHost($show->getShowId())) { if($user->isHost($show->getShowId()) || $user->isAdmin()) {
$show->removeGroupFromShow($group_id); $show->removeGroupFromShow($group_id);
} }