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:
@@ -153,7 +153,7 @@ if (!class_exists('extension')) {
|
||||
//build update array
|
||||
$array['voicemails'][0]['voicemail_uuid'] = $voicemail_uuid;
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('voicemail_edit', 'temp');
|
||||
}
|
||||
else {
|
||||
@@ -161,7 +161,7 @@ if (!class_exists('extension')) {
|
||||
$array['voicemails'][0]['voicemail_uuid'] = uuid();
|
||||
$array['voicemails'][0]['domain_uuid'] = $this->domain_uuid;
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('voicemail_add', 'temp');
|
||||
}
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
@@ -639,7 +639,7 @@ if (!class_exists('extension')) {
|
||||
}
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('extension_user_delete', 'temp');
|
||||
$p->add('follow_me_delete', 'temp');
|
||||
$p->add('follow_me_destination_delete', 'temp');
|
||||
@@ -743,7 +743,7 @@ if (!class_exists('extension')) {
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p = permissions::new();
|
||||
$p->add('extension_edit', 'temp');
|
||||
|
||||
//save the array
|
||||
|
||||
Reference in New Issue
Block a user