diff --git a/app/voicemails/app_config.php b/app/voicemails/app_config.php index 1eb036b7e9..a188f20d43 100644 --- a/app/voicemails/app_config.php +++ b/app/voicemails/app_config.php @@ -63,6 +63,10 @@ $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $apps[$x]['permissions'][$y]['groups'][] = "admin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "voicemail_domain"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; $apps[$x]['permissions'][$y]['name'] = "voicemail_import"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; diff --git a/app/voicemails/voicemails.php b/app/voicemails/voicemails.php index 75b0a1f3f5..17e1c6e838 100644 --- a/app/voicemails/voicemails.php +++ b/app/voicemails/voicemails.php @@ -100,7 +100,7 @@ //prepare to page the results $sql = "select count(voicemail_uuid) from v_voicemails "; $sql .= "where domain_uuid = :domain_uuid "; - if (!permission_exists('voicemail_delete')) { + if (!permission_exists('voicemail_domain')) { if (is_array($voicemail_uuids) && @sizeof($voicemail_uuids) != 0) { $sql .= "and ("; foreach ($voicemail_uuids as $x => $row) {