diff --git a/app/sip_profiles/sip_profile_edit.php b/app/sip_profiles/sip_profile_edit.php index f785f39c15..0870dd72bc 100644 --- a/app/sip_profiles/sip_profile_edit.php +++ b/app/sip_profiles/sip_profile_edit.php @@ -270,10 +270,12 @@ echo "".$text['title-sip_profile']."

\n"; echo "\n"; echo " "; - if (permission_exists('dialplan_add') + if ($action == 'edit' && ( + permission_exists('dialplan_add') || permission_exists('inbound_route_add') || permission_exists('outbound_route_add') - || permission_exists('time_condition_add')) { + || permission_exists('time_condition_add') + )) { echo " \n"; } echo " ";