mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #20301 from owncloud/fix-files_external-empty-user-mounting
[files_external] fix empty user mounts setting
This commit is contained in:
commit
8bffc84766
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Reference in a new issue