mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix temporary permissions
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
$array['conference_controls'][0]['control_name'] = $control_name;
|
||||
$array['conference_controls'][0]['control_enabled'] = 'true';
|
||||
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('conference_control_add', 'temp');
|
||||
|
||||
$database->app_name = 'conference_controls';
|
||||
@@ -96,7 +96,7 @@
|
||||
}
|
||||
$array['conference_control_details'][0]['control_enabled'] = $control_enabled;
|
||||
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('conference_control_detail_add', 'temp');
|
||||
|
||||
$database->app_name = 'conference_controls';
|
||||
|
||||
@@ -103,7 +103,7 @@ if (!class_exists('conference_controls')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('conference_control_detail_delete', 'temp');
|
||||
|
||||
//execute delete
|
||||
|
||||
Reference in New Issue
Block a user