summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/appinfo')
-rw-r--r--apps/files_external/appinfo/app.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/appinfo/app.php b/apps/files_external/appinfo/app.php
index 6c659af8aac..4bdfd316799 100644
--- a/apps/files_external/appinfo/app.php
+++ b/apps/files_external/appinfo/app.php
@@ -77,6 +77,10 @@ OC_Mount_Config::registerBackend('\OC\Files\Storage\Local', [
'datadir' => (string)$l->t('Location')
],
]);
+// Local must only be visible to the admin
+$appContainer->query('OCA\Files_External\Service\BackendService')
+ ->getBackend('\OC\Files\Storage\Local')
+ ->setAllowedVisibility(\OCA\Files_External\Service\BackendService::VISIBILITY_ADMIN);
OC_Mount_Config::registerBackend('\OC\Files\Storage\AmazonS3', [
'backend' => (string)$l->t('Amazon S3'),