CC-1665: Scheduled stream rebroadcasting and recording

-small optimization for user auth
This commit is contained in:
Martin Konecny 2012-08-28 12:38:13 -04:00
parent 219fba9bee
commit 8249ea8816
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class WebstreamController extends Zend_Controller_Action
$hasPermission = true;
}
if ($user->isHost()) {
if (!$hasPermission && $user->isHost()) {
if ($webstream_id != -1) {
$webstream = CcWebstreamQuery::create()->findPK($webstream_id);
//we are updating a playlist. Ensure that if the user is a host/dj, that he has the correct permission.