Merge pull request #26377 from nextcloud/backport/25500/stable21
[stable21] fix(translation): replace static error message
This commit is contained in:
commit
618a48487f
|
@ -543,7 +543,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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue