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