diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2021-01-29 17:16:52 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-02-02 20:52:16 +0000 |
commit | cfc00aa2cdc4bc1448c21e8d9789c663c8fb4b2d (patch) | |
tree | b2978067310ca6dfff386f01ab4f49f28490fe4f /apps/dav | |
parent | e5b59531a309bafd215da719afc23d5dca538e4d (diff) | |
download | nextcloud-server-cfc00aa2cdc4bc1448c21e8d9789c663c8fb4b2d.tar.gz nextcloud-server-cfc00aa2cdc4bc1448c21e8d9789c663c8fb4b2d.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.php | 1 |
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 = []; |