Add voicamail_domain permission (#5349)

This commit is contained in:
agree
2020-07-14 18:24:51 -04:00
committed by GitHub
parent da6e471c28
commit 3d0df8b271
2 changed files with 5 additions and 1 deletions

View File

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

View File

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