fix(translation): replace static error message
as suggested by @kesselb in nextcloud/server#25490 Signed-off-by: Samuel <faust64@gmail.com>
This commit is contained in:
parent
43601086dd
commit
038def2328
|
@ -542,7 +542,8 @@ class Manager implements IManager {
|
|||
$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 GenericShareException($message_t, $message_t, 404);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue