Fixes to service configuration
restart service does not rebuild automatically, we should add a route for that. we need to figure where to scale services etc if we randomly create containers like that.
This commit is contained in:
+2
-2
@@ -572,10 +572,10 @@ function authenticateSftp(req, res, next) {
|
||||
}
|
||||
|
||||
function loadSftpConfig(req, res, next) {
|
||||
services.getServiceConfig('sftp', function (error, service, servicesConfig) {
|
||||
services.getServiceConfig('sftp', function (error, serviceConfig) {
|
||||
if (error) return next(new ldap.OperationsError(error.toString()));
|
||||
|
||||
req.requireAdmin = servicesConfig['sftp'].requireAdmin;
|
||||
req.requireAdmin = serviceConfig.requireAdmin;
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user