mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add permission sip_status_command
This commit is contained in:
@@ -42,5 +42,8 @@
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "sip_status_switch_status";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "sip_status_command";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
|
||||
?>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (if_group("superadmin")) {
|
||||
if (permission_exists("sip_status_command")) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user