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
8e02d45d4d
commit
2c6921e6b8
1 changed files with 3 additions and 0 deletions
|
@ -1187,6 +1187,9 @@ class DefaultShareProvider implements IShareProvider {
|
||||||
$qb->expr()->eq('uid_initiator', $qb->createNamedParameter($uid))
|
$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();
|
$qb->execute();
|
||||||
|
|
Loading…
Reference in a new issue