mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #31240 from nextcloud/Valdnet-patch-3
l10n: Add a dot
This commit is contained in:
commit
47f1ba6ea6
2 changed files with 2 additions and 2 deletions
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue