From cfc00aa2cdc4bc1448c21e8d9789c663c8fb4b2d Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 29 Jan 2021 17:16:52 +0100 Subject: [PATCH] take into account that UNIQUE index might not work as expected Signed-off-by: Arthur Schiwon --- apps/dav/lib/DAV/Sharing/Backend.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php index 71d2accb9c..52fb21210f 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 = [];