Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ private function checkShare(IShare $share, int &$added = 1): void {
foreach ($uids as $uid) {
$user = $this->userManager->get($uid);
if ($user?->isEnabled() === false) {
throw new ShareNotFound($this->l->t('The requested share comes from a disabled user'));
throw new ShareNotFound($this->l->t('The requested share does not exist anymore'));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Share20/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3304,7 +3304,7 @@ public function testGetShareByTokenWithException(): void {

public function testGetShareByTokenHideDisabledUser(): void {
$this->expectException(ShareNotFound::class);
$this->expectExceptionMessage('The requested share comes from a disabled user');
$this->expectExceptionMessage('The requested share does not exist anymore');

$this->config
->expects($this->exactly(2))
Expand Down
Loading