mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Restrict Local backend to admin-only
This commit is contained in:
parent
df8f5425dc
commit
eb0e5ce12c
1 changed files with 4 additions and 0 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue