[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
remotes/origin/exclude_directories_III
Morris Jobke 10 years ago
parent 475b52c93b
commit 2a35ecb9ba
  1. 5
      apps/files_external/service/backendservice.php

@ -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;
}
}
/**

Loading…
Cancel
Save