summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-22 09:58:38 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:59 +0100
commit066238a99074e27122901f4364e26acdfcb4e6dc (patch)
treec5594e47c46fc2fe4c2d9212e964515776d1c22f /lib/private/Collaboration
parent1a73cab3db26495a86cc22ccebe4e7d4aefb3e68 (diff)
downloadnextcloud-server-066238a99074e27122901f4364e26acdfcb4e6dc.tar.gz
nextcloud-server-066238a99074e27122901f4364e26acdfcb4e6dc.zip
Fix unused variable $access
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Resources/Manager.php3
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);