mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
fix(sharing): Don't give a reason when share from disabled user is no longer working
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
32462cdccc
commit
dabdcb4f24
2 changed files with 2 additions and 2 deletions
|
|
@ -1539,7 +1539,7 @@ class Manager implements IManager {
|
|||
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'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3271,7 +3271,7 @@ class ManagerTest extends \Test\TestCase {
|
|||
|
||||
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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue