From 066238a99074e27122901f4364e26acdfcb4e6dc Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Fri, 22 Feb 2019 09:58:38 +0100
Subject: [PATCH] Fix unused variable $access

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 lib/private/Collaboration/Resources/Manager.php | 3 +--
 1 file changed, 1 insertion(+), 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);
-- 
GitLab