Enable some user commands for LDAP

Fixes #3221
This commit is contained in:
Pavel Djundik 2019-11-01 13:37:32 +02:00
parent ddebb22afe
commit e58a895293
2 changed files with 6 additions and 3 deletions

View File

@ -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");
}

View File

@ -1,7 +1,10 @@
"use strict";
require("./list");
if (!require("../../helper").config.ldap.enable) {
require("./add");
require("./remove");
require("./reset");
}
require("./list");
require("./remove");
require("./edit");