Fix temporary permissions

This commit is contained in:
FusionPBX
2024-11-29 14:06:08 -07:00
committed by GitHub
parent 1b675c1b56
commit 8b7bd29456
131 changed files with 258 additions and 258 deletions

View File

@@ -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