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:48:41 +0000 |
commit | b570b226011d840534aa622d27319dd8f3c6f6ff (patch) | |
tree | 4f9f472ca04056692efeb6f35f2c9846d9361355 /apps | |
parent | fcf358e0df5234207897ee10f740205f47f149bf (diff) | |
download | nextcloud-server-b570b226011d840534aa622d27319dd8f3c6f6ff.tar.gz nextcloud-server-b570b226011d840534aa622d27319dd8f3c6f6ff.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')
-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 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 = []; |