Skip to content

Commit a16975b

Browse files
authored
Merge pull request #19334 from nextcloud/backport/19178/stable18
[stable18] Make sure the default share provider does not execute for other things
2 parents 8e02d45 + 2c6921e commit a16975b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/private/Share20/DefaultShareProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,9 @@ public function userDeleted($uid, $shareType) {
11871187
$qb->expr()->eq('uid_initiator', $qb->createNamedParameter($uid))
11881188
)
11891189
);
1190+
} else {
1191+
\OC::$server->getLogger()->logException(new \InvalidArgumentException('Default share provider tried to delete all shares for type: ' . $shareType));
1192+
return;
11901193
}
11911194

11921195
$qb->execute();

0 commit comments

Comments
 (0)