aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-28 20:39:18 +0100
committerGitHub <noreply@github.com>2020-01-28 20:39:18 +0100
commitedd37368fd101439d7c9a9683aeb39b3844945c3 (patch)
treed1d45621483e191854b9e68e0ef87f14be49fa0b /lib
parent74f1b09f3d9d350a3374a35391b79722e81533e9 (diff)
parentc5bc317681e97941254fda00b503b4209ba57d55 (diff)
downloadnextcloud-server-edd37368fd101439d7c9a9683aeb39b3844945c3.tar.gz
nextcloud-server-edd37368fd101439d7c9a9683aeb39b3844945c3.zip
Merge pull request #19178 from nextcloud/bugfix/noid/prevent-potential-problems
Make sure the default share provider does not execute for other things
Diffstat (limited to 'lib')
-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();