take into account that UNIQUE index might not work as expected

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2021-01-29 17:16:52 +01:00
parent c2ba3ca0ed
commit a6414a7d05
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 0 deletions

View File

@ -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 = [];