diff --git a/apps/files/src/default.js b/apps/files/src/default.js index 35373389cd0..230fbd23c06 100644 --- a/apps/files/src/default.js +++ b/apps/files/src/default.js @@ -33,7 +33,10 @@ const appInfo = { app: 'file-link', component: FileLink, enabled (capabilities) { - return capabilities.files_sharing.public.enabled === '1' + if (capabilities.files_sharing) { + return capabilities.files_sharing.public.enabled === '1' + } + return false } }, { app: 'files-sharing',