[files_external] fix empty user mounts setting

* fixes #19858
* if no backend is allowed to be mounted also the user mount setting should be disabled
This commit is contained in:
Morris Jobke 2015-11-04 15:47:03 +01:00
parent 475b52c93b
commit 2a35ecb9ba
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ class BackendService {
$this->userMountingBackends = explode(',',
$this->config->getAppValue('files_external', 'user_mounting_backends', '')
);
// if no backend is in the list an empty string is in the array and user mounting is disabled
if ($this->userMountingBackends === ['']) {
$this->userMountingAllowed = false;
}
}
/**