From aa9878e8676a1106c310230d491aaad8a16415f7 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Fri, 10 Jan 2020 11:34:03 +0100
Subject: 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>
---
 apps/files_sharing/src/components/SharingEntryInherited.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'apps/files_sharing/src/components/SharingEntryInherited.vue')

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') }}
-- 
cgit v1.2.3

