From c5bc317681e97941254fda00b503b4209ba57d55 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 28 Jan 2020 16:00:03 +0100 Subject: [PATCH] Make sure the default share provider does not execute for other things Signed-off-by: Joas Schilling --- lib/private/Share20/DefaultShareProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index 37e8556e1b..e7f077f402 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -1187,6 +1187,9 @@ class DefaultShareProvider implements IShareProvider { $qb->expr()->eq('uid_initiator', $qb->createNamedParameter($uid)) ) ); + } else { + \OC::$server->getLogger()->logException(new \InvalidArgumentException('Default share provider tried to delete all shares for type: ' . $shareType)); + return; } $qb->execute();