mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Prevent deleting the email when fax sender is not authorized (#6981)
* Prevent deleting the email when fax sender is not authorized
This commit is contained in:
@@ -262,11 +262,14 @@ if (!empty($result) && @sizeof($result) != 0) {
|
||||
|
||||
//reset variables
|
||||
unset($fax_numbers);
|
||||
}
|
||||
|
||||
//delete email
|
||||
if (imap_delete($connection, $email_id, FT_UID)) {
|
||||
imap_expunge($connection);
|
||||
//delete email
|
||||
if (imap_delete($connection, $email_id, FT_UID)) {
|
||||
imap_expunge($connection);
|
||||
}
|
||||
}
|
||||
else {
|
||||
//unauthorized sender
|
||||
}
|
||||
}
|
||||
unset($authorized_senders);
|
||||
|
||||
Reference in New Issue
Block a user