* CardDAV/Addressbook: fix accounts not synced for preference account-selection "groupmembers"

This commit is contained in:
Ralf Becker 2019-02-21 18:59:11 +01:00
parent 1246d77e28
commit 5b5525b38f

View File

@ -520,7 +520,7 @@ class Sql extends Api\Storage
if (isset($filter['owner'])) if (isset($filter['owner']))
{ {
// no grants for selected owner/addressbook // no grants for selected owner/addressbook
if (!($filter['owner'] = array_intersect((array)$filter['owner'],array_keys($this->grants)))) if (!array_intersect((array)$filter['owner'],array_keys($this->grants)))
{ {
if (!isset($groupmember_sql)) return false; if (!isset($groupmember_sql)) return false;
$filter[] = substr($groupmember_sql,4); $filter[] = substr($groupmember_sql,4);