]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make sure the default share provider does not execute for other things 19334/head
authorJoas Schilling <coding@schilljs.com>
Tue, 28 Jan 2020 15:00:03 +0000 (16:00 +0100)
committerBackportbot <backportbot-noreply@rullzer.com>
Thu, 6 Feb 2020 20:56:24 +0000 (20:56 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Share20/DefaultShareProvider.php

index 37e8556e1b90b79420472074a85c2facdcf583b0..e7f077f4022afb0bf4699a4ef2f9f50b38ef9e60 100644 (file)
@@ -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();