From 154db4d841ce6afb073373d4cae7b6e4b50f196a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 7 Aug 2025 10:48:42 -0600 Subject: [PATCH] Add a new permission sip_status_flush_cache --- app/sip_status/app_config.php | 4 +++- app/sip_status/sip_status.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/sip_status/app_config.php b/app/sip_status/app_config.php index e666fdfe09..04c12af847 100644 --- a/app/sip_status/app_config.php +++ b/app/sip_status/app_config.php @@ -45,5 +45,7 @@ $y++; $apps[$x]['permissions'][$y]['name'] = "sip_status_command"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; - + $y++; + $apps[$x]['permissions'][$y]['name'] = "sip_status_flush_cache"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; ?> diff --git a/app/sip_status/sip_status.php b/app/sip_status/sip_status.php index 21ddd70a3a..99fab63629 100644 --- a/app/sip_status/sip_status.php +++ b/app/sip_status/sip_status.php @@ -139,8 +139,10 @@ echo "
\n"; echo "
".$text['title-sip_status']."
\n"; echo "
\n"; - if (permission_exists('system_status_sofia_status')) { + if (permission_exists('sip_status_flush_cache')) { echo button::create(['type'=>'button','label'=>$text['button-flush_cache'],'icon'=>'eraser','collapse'=>'hide-xs','link'=>'cmd.php?action=cache-flush']); + ] + if (permission_exists('sip_status_command')) { echo button::create(['type'=>'button','label'=>$text['button-reload_acl'],'icon'=>'shield-alt','collapse'=>'hide-xs','link'=>'cmd.php?action=reloadacl']); echo button::create(['type'=>'button','label'=>$text['button-reload_xml'],'icon'=>'code','collapse'=>'hide-xs','link'=>'cmd.php?action=reloadxml']); }