getServicesConfig -> getServiceConfig
it gets setting of a single service. the settings API returns multiple ones, so it makes sense to call that one getServicesConfig
This commit is contained in:
+1
-1
@@ -572,7 +572,7 @@ function authenticateSftp(req, res, next) {
|
||||
}
|
||||
|
||||
function loadSftpConfig(req, res, next) {
|
||||
services.getServicesConfig('sftp', function (error, service, servicesConfig) {
|
||||
services.getServiceConfig('sftp', function (error, service, servicesConfig) {
|
||||
if (error) return next(new ldap.OperationsError(error.toString()));
|
||||
|
||||
req.requireAdmin = servicesConfig['sftp'].requireAdmin;
|
||||
|
||||
Reference in New Issue
Block a user