Skip to content

Commit

Permalink
Merge pull request #26377 from nextcloud/backport/25500/stable21
Browse files Browse the repository at this point in the history
[stable21] fix(translation): replace static error message
  • Loading branch information
kesselb authored Mar 31, 2021
2 parents 00daf58 + 3073732 commit 618a484
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ protected function userCreateChecks(IShare $share) {
$this->groupManager->getUserGroupIds($sharedWith)
);
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);
}
}

Expand Down

0 comments on commit 618a484

Please sign in to comment.