aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorSamuel <faust64@gmail.com>2021-02-11 12:06:16 +0100
committerSamuel <faust64@gmail.com>2021-02-11 12:06:16 +0100
commit957e287b797b33dfac9e34ad9e7b66e6aa28cd73 (patch)
tree80fdb200b4c753919b03241323352b6dcab3e3e7 /lib/private/Share20
parent75fbc66f9b959a67a36fe768bec6bfd9e839fa70 (diff)
parentd5dea10517bbceaf141f56b6dde0efb55fc6f4b5 (diff)
downloadnextcloud-server-957e287b797b33dfac9e34ad9e7b66e6aa28cd73.tar.gz
nextcloud-server-957e287b797b33dfac9e34ad9e7b66e6aa28cd73.zip
Merge remote-tracking branch 'upstream/master' into feat-federatedfilesharing-logging
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php3
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);
}
}