diff options
author | Joas Schilling <coding@schilljs.com> | 2020-01-28 16:00:03 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-01-28 16:00:03 +0100 |
commit | c5bc317681e97941254fda00b503b4209ba57d55 (patch) | |
tree | d1d45621483e191854b9e68e0ef87f14be49fa0b | |
parent | 74f1b09f3d9d350a3374a35391b79722e81533e9 (diff) | |
download | nextcloud-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.php | 3 |
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(); |