]> source.dussan.org Git - nextcloud-server.git/commitdiff
take into account that UNIQUE index might not work as expected
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 29 Jan 2021 16:16:52 +0000 (17:16 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 2 Feb 2021 20:52:16 +0000 (20:52 +0000)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/dav/lib/DAV/Sharing/Backend.php

index 71d2accb9cfe9daffd1944fede50e071b47a7ad3..52fb21210f85ce3222eb39190bd6971b565bf8a8 100644 (file)
@@ -195,6 +195,7 @@ class Backend {
                        ->from('dav_shares')
                        ->where($query->expr()->eq('resourceid', $query->createNamedParameter($resourceId)))
                        ->andWhere($query->expr()->eq('type', $query->createNamedParameter($this->resourceType)))
+                       ->groupBy(['principaluri', 'access'])
                        ->execute();
 
                $shares = [];