diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-11-04 15:47:03 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-11-04 15:47:03 +0100 |
commit | 2a35ecb9ba84bea169e1e87602a01b2333336e44 (patch) | |
tree | b6f346520ae62e6d027f193ac3c5cbcc33ad2aa0 /apps | |
parent | 475b52c93b052fbe5ab563330af4e0abcef0b87c (diff) | |
download | nextcloud-server-2a35ecb9ba84bea169e1e87602a01b2333336e44.tar.gz nextcloud-server-2a35ecb9ba84bea169e1e87602a01b2333336e44.zip |
[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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/service/backendservice.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/service/backendservice.php b/apps/files_external/service/backendservice.php index 1e90247b3e4..b325517e58a 100644 --- a/apps/files_external/service/backendservice.php +++ b/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; + } } /** |