Browse Source

Merge pull request #27847 from nextcloud/enh/26973/talk-password-failed

Update "Sending password by Nextcloud Talk failed" sentence
tags/v23.0.0beta1
rakekniven 2 years ago
parent
commit
dad31ce3fa
No account linked to committer's email address

+ 1
- 1
apps/files_sharing/lib/Controller/ShareAPIController.php View File

@@ -1161,7 +1161,7 @@ class ShareAPIController extends OCSController {

if ($sendPasswordByTalk === 'true') {
if (!$this->appManager->isEnabledForUser('spreed')) {
throw new OCSForbiddenException($this->l->t('Sharing sending the password by Nextcloud Talk failed because Nextcloud Talk is not enabled'));
throw new OCSForbiddenException($this->l->t('"Sending the password by Nextcloud Talk" for sharing a file or folder failed because Nextcloud Talk is not enabled.'));
}

$share->setSendPasswordByTalk(true);

+ 1
- 1
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php View File

@@ -2967,7 +2967,7 @@ class ShareAPIControllerTest extends TestCase {

public function testUpdateLinkShareSendPasswordByTalkWithTalkDisabledDoesNotChangeOther() {
$this->expectException(\OCP\AppFramework\OCS\OCSForbiddenException::class);
$this->expectExceptionMessage('Sharing sending the password by Nextcloud Talk failed because Nextcloud Talk is not enabled');
$this->expectExceptionMessage('"Sending the password by Nextcloud Talk" for sharing a file or folder failed because Nextcloud Talk is not enabled.');

$ocs = $this->mockFormatShare();


Loading…
Cancel
Save