mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update permission check for destination actions
This commit is contained in:
@@ -1628,7 +1628,7 @@
|
||||
echo "</div>\n";
|
||||
echo " <div class='actions'>\n";
|
||||
echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$settings->get('theme', 'button_icon_back'),'id'=>'btn_back','style'=>'margin-right: 15px;','link'=>'destinations.php?type='.urlencode($destination_type)]);
|
||||
if (permission_exists('destination_add') || permission_exists('destination_add')) {
|
||||
if (permission_exists('destination_add') || permission_exists('destination_edit')) {
|
||||
echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$settings->get('theme', 'button_icon_save'),'id'=>'btn_save']);
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
Reference in New Issue
Block a user