diff options
-rw-r--r-- | lib/private/Collaboration/Resources/Manager.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index 14899b8fa6e..b95747c61de 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); |