Move the permission check to its own if statement.
This commit is contained in:
parent
78f50121dd
commit
be812fd1ec
|
|
@ -324,9 +324,15 @@
|
||||||
echo " <b>".$text['title-conference']."</b>";
|
echo " <b>".$text['title-conference']."</b>";
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
echo " <div class='actions'>\n";
|
echo " <div class='actions'>\n";
|
||||||
|
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','style'=>'margin-right: 15px;','link'=>'conferences.php']);
|
echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'id'=>'btn_back','style'=>'margin-right: 15px;','link'=>'conferences.php']);
|
||||||
if ($action == 'update' && permission_exists('conference_active_view')) {
|
if ($action == 'update') {
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'style'=>'margin-right: 15px;','link'=>'../conferences_active/conferences_active.php?c='.urlencode(str_replace(' ', '-', $conference_name))]);
|
if (permission_exists('conference_cdr_view')) {
|
||||||
|
echo button::create(['type'=>'button','label'=>$text['button-cdr'],'icon'=>'list','link'=>PROJECT_PATH.'/app/conference_cdr/conference_cdr.php?id='.urlencode($conference_uuid)]);
|
||||||
|
}
|
||||||
|
if (permission_exists('conference_active_view')) {
|
||||||
|
echo button::create(['type'=>'button','label'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'style'=>'','link'=>'../conferences_active/conferences_active.php?c='.urlencode(str_replace(' ', '-', $conference_name))]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save']);
|
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save']);
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue