Fix mistake in mailbox-edit

master
heavygale 2019-10-05 17:34:25 +02:00
parent 2e42cfbd5f
commit 292923a1cc
1 changed files with 2 additions and 2 deletions

View File

@ -2121,7 +2121,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
} }
// if already 1 == ok // if already 1 == ok
if ((!isset($_SESSION['acl']['sogo_access']) || $_SESSION['acl']['sogo_access'] != "1") && if ((!isset($_SESSION['acl']['sogo_access']) || $_SESSION['acl']['sogo_access'] != "1") &&
(intval($_data['sogo_access']) == 0 && intval($is_now['attributes']['sogo_access'] != 0))) { (intval($_data['sogo_access']) == 1 && intval($is_now['attributes']['sogo_access'] != 1))) {
$_SESSION['return'][] = array( $_SESSION['return'][] = array(
'type' => 'danger', 'type' => 'danger',
'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr), 'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),