Fix temporary permissions

This commit is contained in:
FusionPBX
2024-11-29 13:57:01 -07:00
committed by GitHub
parent 4db95658c3
commit cd8d5302ac
131 changed files with 252 additions and 252 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ if ($domains_processed == 1) {
//save to the data
if (!empty($array)) {
//add temporary permissions
$p = new permissions;
$p = permissions::new();
$p->add('destination_edit', 'temp');
//create the database object and save the data
@@ -109,7 +109,7 @@ if ($domains_processed == 1) {
if (!empty($array)) {
//add temporary permissions
$p = new permissions;
$p = permissions::new();
$p->add('destination_edit', 'temp');
//create the database object and save the data
+1 -1
View File
@@ -1139,7 +1139,7 @@
}
//add the dialplan permission
$p = new permissions;
$p = permissions::new();
$p->add("dialplan_add", 'temp');
$p->add("dialplan_detail_add", 'temp');
$p->add("dialplan_edit", 'temp');
@@ -1081,7 +1081,7 @@ if (!class_exists('destinations')) {
if (is_array($array) && @sizeof($array) != 0) {
//grant temporary permissions
$p = new permissions;
$p = permissions::new();
$p->add('dialplan_delete', 'temp');
$p->add('dialplan_detail_delete', 'temp');