Add voicemail_transcription_enabled to extension_edit.php (#6265)
* Rename permission to voicemail_transcription_enabled * Update voicemail_edit.php * Add voicemail_transcription_enabled * Update app_languages.php * Update voicemail_edit.php
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "agent";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "voicemail_transcription_edit";
|
||||
$apps[$x]['permissions'][$y]['name'] = "voicemail_transcription_enabled";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
|
||||
@@ -138,8 +138,10 @@
|
||||
//get a new voicemail_uuid
|
||||
if ($action == "add" && permission_exists('voicemail_add')) {
|
||||
$voicemail_uuid = uuid();
|
||||
//If adding a mailbox, set the default transcribe behavior
|
||||
$voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean'];
|
||||
//if adding a mailbox and don't have the transcription permission, set the default transcribe behavior
|
||||
if (!permission_exists('voicemail_transcription_enabled') && isset($_SESSION['voicemail']['transcription_enabled_default']['boolean'])) {
|
||||
$voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean'];
|
||||
}
|
||||
}
|
||||
|
||||
//add common array fields
|
||||
@@ -315,7 +317,7 @@
|
||||
//set defaults
|
||||
if (strlen($voicemail_local_after_email) == 0) { $voicemail_local_after_email = "true"; }
|
||||
if (strlen($voicemail_enabled) == 0) { $voicemail_enabled = "true"; }
|
||||
if (strlen($voicemail_transcription_enabled) == 0) { $voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean'] ?: "false"; }
|
||||
if (strlen($voicemail_transcription_enabled) == 0) { $voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean']; }
|
||||
if (strlen($voicemail_tutorial) == 0) { $voicemail_tutorial = "false"; }
|
||||
|
||||
//get the greetings list
|
||||
@@ -648,7 +650,7 @@
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
if (permission_exists('voicemail_transcription_edit') && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == "true") {
|
||||
if (permission_exists('voicemail_transcription_enabled') && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == "true") {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-voicemail_transcription_enabled']."\n";
|
||||
|
||||
Reference in New Issue
Block a user