ensure accounts and group addressbooks are never private!

This commit is contained in:
Ralf Becker 2011-09-09 06:36:16 +00:00
parent 89991ffb60
commit c2750ba12b

View File

@ -816,9 +816,10 @@ class addressbook_bo extends addressbook_so
if (!$contact['tid']) $contact['tid'] = 'n'; 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)) if(!$ignore_acl && !$this->check_perms($isUpdate ? EGW_ACL_EDIT : EGW_ACL_ADD,$contact))
{ {