diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-03-31 14:57:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 14:57:25 +0200 |
commit | 47f1ba6ea61f9931bc06cc72832dcbe354d6e0ac (patch) | |
tree | 3a1f64431219467d16a9f9ff31770357648cfe0d /apps | |
parent | d4c558a229080670ad9fc5ba8083a648b2ab74ac (diff) | |
parent | 806a49aba5574ed44bb0f7715b4471ac62398f0d (diff) | |
download | nextcloud-server-47f1ba6ea61f9931bc06cc72832dcbe354d6e0ac.tar.gz nextcloud-server-47f1ba6ea61f9931bc06cc72832dcbe354d6e0ac.zip |
Merge pull request #31240 from nextcloud/Valdnet-patch-3
l10n: Add a dot
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareAPIControllerTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 6375ee3d703..35a01ccdd61 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1119,7 +1119,7 @@ class ShareAPIController extends OCSController { if (!$this->hasPermission($newPermissions, Constants::PERMISSION_READ) && ( $this->hasPermission($newPermissions, Constants::PERMISSION_UPDATE) || $this->hasPermission($newPermissions, Constants::PERMISSION_DELETE) )) { - throw new OCSBadRequestException($this->l->t('Share must have READ permission if UPDATE or DELETE permission is set.')); + throw new OCSBadRequestException($this->l->t('Share must have READ permission if UPDATE or DELETE permission is set')); } } diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 324862a746d..c7c2b6d8757 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -2881,7 +2881,7 @@ class ShareAPIControllerTest extends TestCase { */ public function testUpdateLinkShareSetInvalidCRUDPermissions2($permissions) { $this->expectException(\OCP\AppFramework\OCS\OCSBadRequestException::class); - $this->expectExceptionMessage('Share must have READ permission if UPDATE or DELETE permission is set.'); + $this->expectExceptionMessage('Share must have READ permission if UPDATE or DELETE permission is set'); $this->testUpdateLinkShareSetCRUDPermissions($permissions); } |