From 42ca53567d24371a939dccab4b88c3e9939c4d04 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 20 Mar 2023 10:33:54 -0600 Subject: [PATCH] Re-enable the other destinations Permission re-added as its used for the destination select list. --- app/destinations/app_config.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index 6ec3a0f725..31e0ad13e2 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -45,7 +45,6 @@ $apps[$x]['destinations'][$y]['select_value']['ivr'] = "menu-exec-app:transfer \${destination_number} XML \${destination_context}"; $apps[$x]['destinations'][$y]['select_value']['user_contact'] = "loopback/\${destination_number}"; $apps[$x]['destinations'][$y]['select_label'] = "\${destination_number} \${destination_description}"; - /* $y++; $apps[$x]['destinations'][$y]['type'] = 'array'; $apps[$x]['destinations'][$y]['label'] = 'other'; @@ -67,7 +66,6 @@ $z++; $apps[$x]['destinations'][$y]['result']['data'][$z]['name'] = 'company_directory'; $apps[$x]['destinations'][$y]['result']['data'][$z]['destination'] = '*732 XML ${context}'; - */ //permission details $y=0; @@ -157,6 +155,10 @@ $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "admin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "other_destinations"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; //default settings $y = 0;