diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-19 10:04:42 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-19 10:08:24 +0100 |
commit | eb0e5ce12c5200dbe29d51d8bfd561e4df6267b5 (patch) | |
tree | 39483384d9a749eecce1db762b17271d46afae89 /apps/files_external/appinfo | |
parent | df8f5425dc32a98f2c5c656215fa0e8564d6a282 (diff) | |
download | nextcloud-server-eb0e5ce12c5200dbe29d51d8bfd561e4df6267b5.tar.gz nextcloud-server-eb0e5ce12c5200dbe29d51d8bfd561e4df6267b5.zip |
Restrict Local backend to admin-only
Diffstat (limited to 'apps/files_external/appinfo')
-rw-r--r-- | apps/files_external/appinfo/app.php | 4 |
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'), |