From a6414a7d0580fcc3cb368331e3eaa05857830b81 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 c77e90b961..8868ca382f 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 = [];