diff --git a/src/command-line/index.js b/src/command-line/index.js index 734e1e84..8d3feada 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -43,7 +43,7 @@ Helper.mergeConfig(Helper.config, program.config); require("./start"); -if (!Helper.config.public && !Helper.config.ldap.enable) { +if (!Helper.config.public) { require("./users"); } diff --git a/src/command-line/users/index.js b/src/command-line/users/index.js index 3a5b4960..b4784963 100644 --- a/src/command-line/users/index.js +++ b/src/command-line/users/index.js @@ -1,7 +1,10 @@ "use strict"; +if (!require("../../helper").config.ldap.enable) { + require("./add"); + require("./reset"); +} + require("./list"); -require("./add"); require("./remove"); -require("./reset"); require("./edit");