Add a new permission extension_user_context.
This commit is contained in:
parent
2353b9622a
commit
a7a472c86a
|
|
@ -83,6 +83,9 @@
|
|||
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "extension_user_context";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
|
||||
//schema details
|
||||
$y = 0; //table array index
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
}
|
||||
|
||||
//set the default user context
|
||||
if (if_group("superadmin")) {
|
||||
if (permission_exists("extension_user_context")) {
|
||||
//allow a user assigned to super admin to change the user_context
|
||||
}
|
||||
else {
|
||||
|
|
@ -634,7 +634,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$sql .= "directory_exten_visible = '$directory_exten_visible', ";
|
||||
$sql .= "limit_max = '$limit_max', ";
|
||||
$sql .= "limit_destination = '$limit_destination', ";
|
||||
$sql .= "user_context = '$user_context', ";
|
||||
if (permission_exists("extension_context")) {
|
||||
$sql .= "user_context = '$user_context', ";
|
||||
}
|
||||
if (permission_exists('extension_missed_call')) {
|
||||
$sql .= "missed_call_app = '$missed_call_app', ";
|
||||
$sql .= "missed_call_data = '$missed_call_data', ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue