Browse Source

l10n: Delete dot

Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
tags/v24.0.0beta2
Valdnet 2 years ago
parent
commit
522d9c1d1f
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      apps/files_sharing/lib/Controller/ShareAPIController.php

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

@@ -1113,13 +1113,13 @@ class ShareAPIController extends OCSController {

if ($newPermissions !== null) {
if (!$this->hasPermission($newPermissions, Constants::PERMISSION_READ) && !$this->hasPermission($newPermissions, Constants::PERMISSION_CREATE)) {
throw new OCSBadRequestException($this->l->t('Share must at least have READ or CREATE permissions.'));
throw new OCSBadRequestException($this->l->t('Share must at least have READ or CREATE permissions'));
}

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'));
}
}


Loading…
Cancel
Save