Make sure the default share provider does not execute for other things

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-01-28 16:00:03 +01:00 committed by Backportbot
parent 8e02d45d4d
commit 2c6921e6b8

View 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();