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:
parent
74f1b09f3d
commit
c5bc317681
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue