Skip to content

Commit 618a484

Browse files
authored
Merge pull request #26377 from nextcloud/backport/25500/stable21
[stable21] fix(translation): replace static error message
2 parents 00daf58 + 3073732 commit 618a484

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/Share20/Manager.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,8 @@ protected function userCreateChecks(IShare $share) {
543543
$this->groupManager->getUserGroupIds($sharedWith)
544544
);
545545
if (empty($groups)) {
546-
throw new \Exception('Sharing is only allowed with group members');
546+
$message_t = $this->l->t('Sharing is only allowed with group members');
547+
throw new \Exception($message_t);
547548
}
548549
}
549550

0 commit comments

Comments
 (0)