summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-01-28 16:00:03 +0100
committerJoas Schilling <coding@schilljs.com>2020-01-28 16:00:03 +0100
commitc5bc317681e97941254fda00b503b4209ba57d55 (patch)
treed1d45621483e191854b9e68e0ef87f14be49fa0b
parent74f1b09f3d9d350a3374a35391b79722e81533e9 (diff)
downloadnextcloud-server-c5bc317681e97941254fda00b503b4209ba57d55.tar.gz
nextcloud-server-c5bc317681e97941254fda00b503b4209ba57d55.zip
Make sure the default share provider does not execute for other things
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Share20/DefaultShareProvider.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index 37e8556e1b9..e7f077f4022 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();