From 220f19dcf04eb56b5a6e4d095e00891c5f703c73 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 28 Jun 2022 11:00:45 -0600 Subject: [PATCH] Add new permisisons for the switch dashboard. switch_version switch_uptime switch_channels switch_registrations --- app/switch/app_config.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/switch/app_config.php b/app/switch/app_config.php index e9832b43c0..0637140d25 100644 --- a/app/switch/app_config.php +++ b/app/switch/app_config.php @@ -29,6 +29,21 @@ $apps[$x]['description']['sv-se'] = ""; $apps[$x]['description']['uk-ua'] = ""; + //permission details + $y=0; + $apps[$x]['permissions'][$y]['name'] = "switch_version"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; + $apps[$x]['permissions'][$y]['name'] = "switch_uptime"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; + $apps[$x]['permissions'][$y]['name'] = "switch_channels"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; + $apps[$x]['permissions'][$y]['name'] = "switch_registrations"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + //default settings $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "9ff1ed88-76ba-4648-a082-d53f64947d08";