aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-01-15 11:06:34 +0100
committerGitHub <noreply@github.com>2020-01-15 11:06:34 +0100
commitcc05aa2044eb96a34c92f892a6c3901729ca153e (patch)
treed9c59164675483c25e325944ea30a37cf10d94f5 /apps/files_sharing/lib/Controller
parent0f238623f6fcbc6605580d79f9705eab9bfcdf5a (diff)
parentfc77f530d7696e4272a9773f71a7cd181aa458d0 (diff)
downloadnextcloud-server-cc05aa2044eb96a34c92f892a6c3901729ca153e.tar.gz
nextcloud-server-cc05aa2044eb96a34c92f892a6c3901729ca153e.zip
Merge pull request #18799 from nextcloud/fix/inheritedshares/no_link_shares
Do not show link shares in inherited list
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 7e6b3674b95..4893be25b20 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -222,12 +222,12 @@ class ShareAPIController extends OCSController {
$group = $this->groupManager->get($share->getSharedWith());
$result['share_with'] = $share->getSharedWith();
$result['share_with_displayname'] = $group !== null ? $group->getDisplayName() : $share->getSharedWith();
- } else if ($share->getShareType() === Share::SHARE_TYPE_LINK) {
+ } else if ($share->getShareType() === IShare::TYPE_LINK) {
// "share_with" and "share_with_displayname" for passwords of link
// shares was deprecated in Nextcloud 15, use "password" instead.
$result['share_with'] = $share->getPassword();
- $result['share_with_displayname'] = $share->getPassword();
+ $result['share_with_displayname'] = '(' . $this->l->t('Shared link') . ')';
$result['password'] = $share->getPassword();