Merge pull request #25507 from nextcloud/backport/25500/stable19

[stable19] fix(translation): replace static error message
This commit is contained in:
Roeland Jago Douma 2021-02-09 14:37:21 +01:00 committed by GitHub
commit 7bcfbc83ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -542,7 +542,8 @@ class Manager implements IManager {
$this->groupManager->getUserGroupIds($sharedWith) $this->groupManager->getUserGroupIds($sharedWith)
); );
if (empty($groups)) { if (empty($groups)) {
throw new \Exception('Sharing is only allowed with group members'); $message_t = $this->l->t('Sharing is only allowed with group members');
throw new \Exception($message_t);
} }
} }