[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:
parent
475b52c93b
commit
2a35ecb9ba
|
@ -72,6 +72,11 @@ class BackendService {
|
||||||
$this->userMountingBackends = explode(',',
|
$this->userMountingBackends = explode(',',
|
||||||
$this->config->getAppValue('files_external', 'user_mounting_backends', '')
|
$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 New Issue