From bcbafe4c3697ec099d8e451e0248cc5a99f69079 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 27 Feb 2020 14:06:34 -0700 Subject: [PATCH] Time Conditions - Edit: Permission adjustment. --- app/time_conditions/time_condition_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index 8cb985dcb1..7b49e708b0 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -906,7 +906,7 @@ echo "
\n"; echo "
".$text['title-time_condition']."
\n"; echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'style'=>'margin-right: 15px;','link'=>PROJECT_PATH.'/app/time_conditions/time_conditions.php?app_uuid=4b821450-926b-175a-af93-a03c441818b1']); -if (if_group("superadmin") && $action == 'update') { +if ($action == 'update' && permission_exists('dialplan_edit')) { echo button::create(['type'=>'button','label'=>$text['button-dialplan'],'icon'=>'list','style'=>'margin-right: 15px;','link'=>PROJECT_PATH.'/app/dialplans/dialplan_edit.php?id='.urlencode($dialplan_uuid).'&app_uuid=4b821450-926b-175a-af93-a03c441818b1']); } echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save']]);