Update email_log_delete.php

This commit is contained in:
FusionPBX 2019-04-18 09:56:08 -06:00 committed by GitHub
parent 15f60e8423
commit 266d53ddb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@
if ($email_uuid != '') {
$sql = "delete from v_email_logs ";
$sql .= "where email_uuid = '".$email_log_uuid."' ";
if (permission_exists('emails_all') && $_REQUEST['showall'] == 'true') {
if (permission_exists('email_log_all') && $_REQUEST['showall'] == 'true') {
$sql .= "";
} else {
$sql .= "and domain_uuid = '".$domain_uuid."' ";