Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
8eea34dc39
|
@ -195,9 +195,9 @@ class PlaylistController extends Zend_Controller_Action
|
|||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
$user = new Application_Model_User($userInfo->id);
|
||||
$isAdminOrPM = $user->isUserType(array(UTYPE_ADMIN, UTYPE_PROGRAM_MANAGER));
|
||||
$this->view->obj = $obj;
|
||||
|
||||
if($isAdminOrPM || $obj->getCreatorId() == $userInfo->id){
|
||||
$this->view->obj = $obj;
|
||||
if($this->obj_sess->type == "block"){
|
||||
$form = new Application_Form_SmartBlockCriteria();
|
||||
$form->startForm($this->obj_sess->id);
|
||||
|
|
|
@ -12,9 +12,8 @@ if (isset($this->obj)) {
|
|||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<button class="ui-button ui-state-default sp-button" type="button" id="save_button">Save</button>
|
||||
|
||||
<?php if (isset($this->obj)) : ?>
|
||||
<button class="ui-button ui-state-default sp-button" type="button" id="save_button">Save</button>
|
||||
<input id="obj_id" type="hidden" value="<?php echo $this->obj->getId(); ?>"></input>
|
||||
<input id="obj_lastMod" type="hidden" value="<?php echo $this->obj->getLastModified('U'); ?>"></input>
|
||||
<input id='obj_type' type='hidden' value='playlist'></input>
|
||||
|
|
|
@ -12,7 +12,11 @@ if (isset($this->obj)) {
|
|||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->form->getElement('save_button');?>
|
||||
<?php
|
||||
if (isset($this->form)) {
|
||||
echo $this->form->getElement('save_button');
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (isset($this->obj)) : ?>
|
||||
<input id="obj_id" type="hidden" value="<?php echo $this->obj->getId(); ?>"></input>
|
||||
|
|
Loading…
Reference in New Issue