Merge pull request #52192 from nextcloud/backport/52187/stable30

fix(tests): Share manager error message from #52076
This commit is contained in:
John Molakvoæ 2025-04-14 21:23:10 +02:00 committed by GitHub
commit 291fb0d263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -600,7 +600,7 @@ class Manager implements IManager {
$mounts = $this->mountManager->findIn($path->getPath());
foreach ($mounts as $mount) {
if ($mount->getStorage()->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
throw new \InvalidArgumentException('Path contains files shared with you');
throw new \InvalidArgumentException('You cannot share a folder that contains other shares');
}
}
}