From e1ca34a03a678993f6d6ddb7caf82f8eaa8f4531 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 30 Nov 2019 21:51:20 -0700 Subject: [PATCH] SIP Profiles: Hide copy button on add. --- app/sip_profiles/sip_profile_edit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 " ";