diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-02-05 16:17:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 16:17:34 +0100 |
commit | 6e461248e088ca07618a1c5ebe6efe2da474c710 (patch) | |
tree | 42f85d334d35354755a5ca061e56a882291a85b8 /lib/private | |
parent | c12b3f4de3de078e625ac546de5d02b2e276399a (diff) | |
parent | 3a077a3903dddcf6de7a70dc5227460065b3caa1 (diff) | |
download | nextcloud-server-6e461248e088ca07618a1c5ebe6efe2da474c710.tar.gz nextcloud-server-6e461248e088ca07618a1c5ebe6efe2da474c710.zip |
Merge pull request #25500 from Worteks/fix-sharemanager-genericshareexception
fix(translation): replace static error message
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Share20/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 9a2b413896b..32bc0363b99 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -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 \Exception($message_t); } } |