summaryrefslogtreecommitdiffstats
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-01-29 17:29:10 +0100
commitbd8b43127ff5d5b34c32be4fcf2b55c97fd113e9 (patch)
tree6fb87189290dcf4ff47227b7a026e6164177df37 /apps/dav
parent558f062ca66978f13803c72135c2849c28c0347a (diff)
downloadnextcloud-server-bd8b43127ff5d5b34c32be4fcf2b55c97fd113e9.tar.gz
nextcloud-server-bd8b43127ff5d5b34c32be4fcf2b55c97fd113e9.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 71d2accb9cf..52fb21210f8 100644
--- a/apps/dav/lib/DAV/Sharing/Backend.php
+++ b/apps/dav/lib/DAV/Sharing/Backend.php
@@ -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 = [];