Add new permission voicemail_file (#6403)

* Add new permission voicemail_file

* Update app_config.php

* Update voicemail_edit.php
This commit is contained in:
FusionPBX 2022-06-01 10:48:33 -06:00 committed by GitHub
parent 7bbbc4e895
commit 93c7714148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 31 deletions

View File

@ -674,7 +674,9 @@
//$array["voicemails"][$i]["voicemail_alternate_greet_id"] = $alternate_greet_id; //$array["voicemails"][$i]["voicemail_alternate_greet_id"] = $alternate_greet_id;
$array["voicemails"][$i]["voicemail_mail_to"] = $voicemail_mail_to; $array["voicemails"][$i]["voicemail_mail_to"] = $voicemail_mail_to;
//$array["voicemails"][$i]["voicemail_attach_file"] = $voicemail_attach_file; //$array["voicemails"][$i]["voicemail_attach_file"] = $voicemail_attach_file;
if (permission_exists('voicemail_file')) {
$array["voicemails"][$i]["voicemail_file"] = $voicemail_file; $array["voicemails"][$i]["voicemail_file"] = $voicemail_file;
}
if (permission_exists('voicemail_local_after_email')) { if (permission_exists('voicemail_local_after_email')) {
$array["voicemails"][$i]["voicemail_local_after_email"] = $voicemail_local_after_email; $array["voicemails"][$i]["voicemail_local_after_email"] = $voicemail_local_after_email;
} }
@ -1737,6 +1739,7 @@
echo "</tr>\n"; echo "</tr>\n";
} }
if (permission_exists('voicemail_file')) {
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_file']."\n"; echo " ".$text['label-voicemail_file']."\n";
@ -1751,6 +1754,7 @@
echo $text['description-voicemail_file']."\n"; echo $text['description-voicemail_file']."\n";
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
}
if (permission_exists('voicemail_local_after_email')) { if (permission_exists('voicemail_local_after_email')) {
echo "<tr>\n"; echo "<tr>\n";

View File

@ -76,6 +76,10 @@
$apps[$x]['permissions'][$y]['name'] = "voicemail_import"; $apps[$x]['permissions'][$y]['name'] = "voicemail_import";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++; $y++;
$apps[$x]['permissions'][$y]['name'] = "voicemail_file";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$apps[$x]['permissions'][$y]['groups'][] = "admin";
$y++;
$apps[$x]['permissions'][$y]['name'] = "voicemail_message_view"; $apps[$x]['permissions'][$y]['name'] = "voicemail_message_view";
$apps[$x]['permissions'][$y]['menu']['uuid'] = "0347f82a-62a0-49d0-bacd-511d080c46d5"; $apps[$x]['permissions'][$y]['menu']['uuid'] = "0347f82a-62a0-49d0-bacd-511d080c46d5";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin";

View File

@ -155,7 +155,9 @@
$array['voicemails'][0]['voicemail_sms_to'] = $voicemail_sms_to; $array['voicemails'][0]['voicemail_sms_to'] = $voicemail_sms_to;
$array['voicemails'][0]['voicemail_transcription_enabled'] = $voicemail_transcription_enabled; $array['voicemails'][0]['voicemail_transcription_enabled'] = $voicemail_transcription_enabled;
$array['voicemails'][0]['voicemail_tutorial'] = $voicemail_tutorial; $array['voicemails'][0]['voicemail_tutorial'] = $voicemail_tutorial;
if (permission_exists('voicemail_file')) {
$array['voicemails'][0]['voicemail_file'] = $voicemail_file; $array['voicemails'][0]['voicemail_file'] = $voicemail_file;
}
if (permission_exists('voicemail_local_after_email')) { if (permission_exists('voicemail_local_after_email')) {
$array['voicemails'][0]['voicemail_local_after_email'] = $voicemail_local_after_email; $array['voicemails'][0]['voicemail_local_after_email'] = $voicemail_local_after_email;
} }
@ -667,6 +669,7 @@
echo "</tr>\n"; echo "</tr>\n";
} }
if (permission_exists('voicemail_file')) {
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_file']."\n"; echo " ".$text['label-voicemail_file']."\n";
@ -682,6 +685,7 @@
echo $text['description-voicemail_file']."\n"; echo $text['description-voicemail_file']."\n";
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
}
if (permission_exists('voicemail_local_after_email')) { if (permission_exists('voicemail_local_after_email')) {
echo "<tr>\n"; echo "<tr>\n";