Fix temporary permissions
This commit is contained in:
@@ -231,7 +231,7 @@ if (!class_exists('xml_cdr')) {
|
||||
}
|
||||
|
||||
//add the temporary permission
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add("xml_cdr_add", "temp");
|
||||
$p->add("xml_cdr_json_add", "temp");
|
||||
$p->add("xml_cdr_flow_add", "temp");
|
||||
@@ -2113,7 +2113,7 @@ if (!class_exists('xml_cdr')) {
|
||||
}
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('call_recording_delete', 'temp');
|
||||
|
||||
//execute delete
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//add temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('xml_cdr_edit', 'temp');
|
||||
|
||||
//remove record_path, record_name and record_length
|
||||
|
||||
Reference in New Issue
Block a user