diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index 14899b8fa6e233506937c072432949f5b6874b9c..b95747c61de70da8f115651b64d458a816884477 100644 --- a/lib/private/Collaboration/Resources/Manager.php +++ b/lib/private/Collaboration/Resources/Manager.php @@ -103,8 +103,7 @@ class Manager implements IManager { $access = $row['access'] === null ? null : (bool) $row['access']; if ($user instanceof IUser) { - $access = [$user->getUID() => $access]; - return new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, null); + return new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access); } return new Collection($this, $this->connection, (int) $row['id'], (string) $row['name'], $user, $access);