From be5f1e47f6751c9bbdfa5a3761f919e65b8e7802 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 2 May 2022 16:54:31 -0600 Subject: [PATCH] Add new permissions destination_hold_music and destination_distinctive_ring. Add new field destination_distinctive_ring to to the destinations table. --- app/destinations/app_config.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index 3edec8a1d7..04f7af5d54 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -102,9 +102,6 @@ $apps[$x]['permissions'][$y]['name'] = "destination_all"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; - $apps[$x]['permissions'][$y]['name'] = "destination_record"; - $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; - $y++; $apps[$x]['permissions'][$y]['name'] = "destination_trunk_prefix"; $y++; $apps[$x]['permissions'][$y]['name'] = "destination_area_code"; @@ -123,6 +120,16 @@ $apps[$x]['permissions'][$y]['name'] = "destination_context"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "destination_record"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; + $apps[$x]['permissions'][$y]['name'] = "destination_hold_music"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; + $apps[$x]['permissions'][$y]['name'] = "destination_distinctive_ring"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; $apps[$x]['permissions'][$y]['name'] = "destination_accountcode"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "admin"; @@ -303,6 +310,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select whether to set music on hold."; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_distinctive_ring"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Select whether to set distinctive ring."; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_accountcode"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';