CC-3452: Live Stream: DJs assigned to the show and Program Managers should be
able to control switches and able to kick out connection - refactoring code
This commit is contained in:
parent
04c2c2f920
commit
559acfd5a1
4 changed files with 3 additions and 24 deletions
|
@ -1,18 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Airtime_View_Helper_IsPermissionAllowed extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function IsPermissionAllowed()
|
||||
{
|
||||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
$user = new Application_Model_User($userInfo->id);
|
||||
|
||||
$show = Application_Model_Show::GetCurrentShow();
|
||||
$show_id = isset($show['id'])?$show['id']:0;
|
||||
if($user->canSchedule($show_id)){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue