mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 03:02:01 -04:00
Merge pull request #19334 from nextcloud/backport/19178/stable18
[stable18] Make sure the default share provider does not execute for other things
This commit is contained in:
commit
a16975b810
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))
|
||||
)
|
||||
);
|
||||
} else {
|
||||
\OC::$server->getLogger()->logException(new \InvalidArgumentException('Default share provider tried to delete all shares for type: ' . $shareType));
|
||||
return;
|
||||
}
|
||||
|
||||
$qb->execute();
|
||||
|
|
|
|||
Loading…
Reference in a new issue