]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove non-circles-generated shares only 18713/head
authorMaxence Lange <maxence@artificial-owl.com>
Tue, 7 Jan 2020 10:40:41 +0000 (09:40 -0100)
committerMaxence Lange <maxence@artificial-owl.com>
Tue, 7 Jan 2020 10:40:41 +0000 (09:40 -0100)
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
apps/federatedfilesharing/lib/FederatedShareProvider.php

index 859dcaf4ed8247caad06a8d618c2d05787f6025a..82f47d61ded41ff5c46bbb1244e5c017e1ee5ad8 100644 (file)
@@ -599,7 +599,8 @@ class FederatedShareProvider implements IShareProvider {
        private function removeShareFromTableById($shareId) {
                $qb = $this->dbConnection->getQueryBuilder();
                $qb->delete('share')
-                       ->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId)));
+                       ->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId)))
+                       ->where($qb->expr()->neq('share_type', $qb->createNamedParameter(IShare::TYPE_CIRCLE)));
                $qb->execute();
 
                $qb->delete('federated_reshares')