admin can do anything a host of a show can
This commit is contained in:
parent
00b70c5144
commit
5468db39e8
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue