From c0213491315b6e991ee4c5233e3eb7886d9fe678 Mon Sep 17 00:00:00 2001 From: Pawel Boguslawski Date: Thu, 2 Jul 2026 15:07:36 +0200 Subject: [PATCH 1/2] fix(sharing): hide "Shared by link" when sharing by link is disabled Related: https://github.com/nextcloud/server/issues/50323 Author-Change-Id: IB#1156670 Signed-off-by: Pawel Boguslawski --- apps/files_sharing/src/files_views/shares.ts | 27 +++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/apps/files_sharing/src/files_views/shares.ts b/apps/files_sharing/src/files_views/shares.ts index aa9903c242854..f71b57d811175 100644 --- a/apps/files_sharing/src/files_views/shares.ts +++ b/apps/files_sharing/src/files_views/shares.ts @@ -80,22 +80,25 @@ export default () => { })) } - Navigation.register(new View({ - id: sharingByLinksViewId, - name: t('files_sharing', 'Shared by link'), - caption: t('files_sharing', 'List of files that are shared by link.'), + // Don't show this view if sharing by link is disabled. + if (getCapabilities().files_sharing.public.enabled) { + Navigation.register(new View({ + id: sharingByLinksViewId, + name: t('files_sharing', 'Shared by link'), + caption: t('files_sharing', 'List of files that are shared by link.'), - emptyTitle: t('files_sharing', 'No shared links'), - emptyCaption: t('files_sharing', 'Files and folders you shared by link will show up here'), + emptyTitle: t('files_sharing', 'No shared links'), + emptyCaption: t('files_sharing', 'Files and folders you shared by link will show up here'), - icon: LinkSvg, - order: 3, - parent: sharesViewId, + icon: LinkSvg, + order: 3, + parent: sharesViewId, - columns: [], + columns: [], - getContents: () => getContents(false, true, false, false, [ShareType.Link]), - })) + getContents: () => getContents(false, true, false, false, [ShareType.Link]), + })) + } Navigation.register(new View({ id: fileRequestViewId, From 8482297a0ec00fb475729cefff350f44270889ad Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Fri, 25 Sep 2026 15:54:23 +0000 Subject: [PATCH 2/2] chore(assets): Recompile assets Signed-off-by: nextcloud-command