]> 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)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 17 Feb 2021 14:59:50 +0000 (15:59 +0100)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/dav/lib/DAV/Sharing/Backend.php

index c77e90b961f0c64d48de42298b1c050b779cbbbc..8868ca382f0158c7ddeacf4ed7d0c4a8c135c000 100644 (file)
@@ -194,6 +194,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 = [];