ensure accounts and group addressbooks are never private!

This commit is contained in:
Ralf Becker 2011-09-09 06:37:07 +00:00
parent c416620538
commit b52ba62441

View File

@ -793,9 +793,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))
{