aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-01-29 17:16:52 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-02-17 15:59:50 +0100
commita6414a7d0580fcc3cb368331e3eaa05857830b81 (patch)
treefc05ac615425716beb9fe3fab1939fac1d404595 /apps/dav
parentc2ba3ca0ed1ad8f1e572665c94100e04ffb0fe98 (diff)
downloadnextcloud-server-a6414a7d0580fcc3cb368331e3eaa05857830b81.tar.gz
nextcloud-server-a6414a7d0580fcc3cb368331e3eaa05857830b81.zip
take into account that UNIQUE index might not work as expected
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/DAV/Sharing/Backend.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php
index c77e90b961f..8868ca382f0 100644
--- a/apps/dav/lib/DAV/Sharing/Backend.php
+++ b/apps/dav/lib/DAV/Sharing/Backend.php
@@ -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 = [];