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
parent 74f1b09f3d
commit c5bc317681
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 3 additions and 0 deletions

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