summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-10-28 16:00:49 +0100
committerRobin Appelman <robin@icewind.nl>2020-10-29 16:43:21 +0100
commitde7026f6e4662ff42e0a3c12021a3cee25c5d91f (patch)
tree3c54e336f533f58b3e48a163360e35f244503cba /lib/private/Share20
parent7ed11b6dfafb8793751f80a55f38e6242805386d (diff)
downloadnextcloud-server-de7026f6e4662ff42e0a3c12021a3cee25c5d91f.tar.gz
nextcloud-server-de7026f6e4662ff42e0a3c12021a3cee25c5d91f.zip
use file name instead of path in 'not allowed to share' message
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index a12658f10d7..ded0d13b6d0 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -287,8 +287,7 @@ class Manager implements IManager {
// Check if we actually have share permissions
if (!$share->getNode()->isShareable()) {
- $path = $userFolder->getRelativePath($share->getNode()->getPath());
- $message_t = $this->l->t('You are not allowed to share %s', [$path]);
+ $message_t = $this->l->t('You are not allowed to share %s', [$share->getNode()->getName()]);
throw new GenericShareException($message_t, $message_t, 404);
}