From c2750ba12b64ddc2e2c9eec34f819919f945a4d8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 9 Sep 2011 06:36:16 +0000 Subject: [PATCH] ensure accounts and group addressbooks are never private! --- addressbook/inc/class.addressbook_bo.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_bo.inc.php b/addressbook/inc/class.addressbook_bo.inc.php index ef949eb299..f506daf378 100755 --- a/addressbook/inc/class.addressbook_bo.inc.php +++ b/addressbook/inc/class.addressbook_bo.inc.php @@ -816,9 +816,10 @@ class addressbook_bo extends addressbook_so if (!$contact['tid']) $contact['tid'] = 'n'; } - if (!$contact['owner']) + // ensure accounts and group addressbooks are never private! + if ($contact['owner'] <= 0) { - $contact['private'] = 0; // accounts are never private! + $contact['private'] = 0; } if(!$ignore_acl && !$this->check_perms($isUpdate ? EGW_ACL_EDIT : EGW_ACL_ADD,$contact)) {