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:
parent
558f062ca6
commit
bd8b43127f
|
@ -195,6 +195,7 @@ class Backend {
|
||||||
->from('dav_shares')
|
->from('dav_shares')
|
||||||
->where($query->expr()->eq('resourceid', $query->createNamedParameter($resourceId)))
|
->where($query->expr()->eq('resourceid', $query->createNamedParameter($resourceId)))
|
||||||
->andWhere($query->expr()->eq('type', $query->createNamedParameter($this->resourceType)))
|
->andWhere($query->expr()->eq('type', $query->createNamedParameter($this->resourceType)))
|
||||||
|
->groupBy(['principaluri', 'access'])
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$shares = [];
|
$shares = [];
|
||||||
|
|
Loading…
Reference in New Issue