summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-10 11:34:03 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-15 07:40:41 +0100
commitaa9878e8676a1106c310230d491aaad8a16415f7 (patch)
treeb58ec25daaf6f14a16010aad09c926edb5aa8617 /apps/files_sharing/src
parent060dd35ef9658907eb578043437fa476efc7bcaf (diff)
downloadnextcloud-server-aa9878e8676a1106c310230d491aaad8a16415f7.tar.gz
nextcloud-server-aa9878e8676a1106c310230d491aaad8a16415f7.zip
Only allow navigation to a folder if you have access
Fixes #18716 If you can delete the share then you have access yourself to that shares location. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingEntryInherited.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryInherited.vue b/apps/files_sharing/src/components/SharingEntryInherited.vue
index 7d56f4eac34..2c08b43d0cd 100644
--- a/apps/files_sharing/src/components/SharingEntryInherited.vue
+++ b/apps/files_sharing/src/components/SharingEntryInherited.vue
@@ -35,7 +35,7 @@
<ActionText icon="icon-user">
{{ t('files_sharing', 'Added by {initiator}', { initiator: share.ownerDisplayName }) }}
</ActionText>
- <ActionLink v-if="share.fileSource"
+ <ActionLink v-if="share.canDelete && share.fileSource"
icon="icon-folder"
:href="fileTargetUrl">
{{ t('files_sharing', 'Via folder') }}