gui: restore fix for auditor

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-09-23 17:13:29 +02:00
parent cc4e2d6f6a
commit 6522d64bd7

View File

@ -46,7 +46,7 @@ class ControllerMessageBulkrestore extends Controller {
$this->data['restored'] = 0;
if(RESTORE_OVER_IMAP == 1) {
if(RESTORE_OVER_IMAP == 1 && Registry::get('auditor_user') == 0) {
require_once 'Zend/Mail/Protocol/Imap.php';
require_once 'Zend/Mail/Storage/Imap.php';
@ -86,7 +86,7 @@ class ControllerMessageBulkrestore extends Controller {
$msg = $this->model_search_message->get_raw_message($piler_id);
$this->model_search_message->remove_journal($msg);
if(RESTORE_OVER_IMAP == 1) {
if(RESTORE_OVER_IMAP == 1 && Registry::get('auditor_user') == 0) {
if($imap_ok) {
$imap_folder = IMAP_RESTORE_FOLDER_INBOX;