diff --git a/src/mod_configure.erl b/src/mod_configure.erl index e879470f2..cb50a9366 100644 --- a/src/mod_configure.erl +++ b/src/mod_configure.erl @@ -237,7 +237,23 @@ get_local_features(Acc, From, #jid{lserver = LServer} = _To, Node, _Lang) -> ?INFO_RESULT(Allow, [?NS_COMMANDS]); ["config", _] -> ?INFO_RESULT(Allow, [?NS_COMMANDS]); - ["http:" | _] -> + ?NS_ADMINL("add-user") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("delete-user") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("end-user-session") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("get-user-password") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("change-user-password") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("get-user-lastlogin") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("user-stats") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("get-registered-users-num") -> + ?INFO_RESULT(Allow, [?NS_COMMANDS]); + ?NS_ADMINL("get-online-users-num") -> ?INFO_RESULT(Allow, [?NS_COMMANDS]); _ -> Acc @@ -449,7 +465,23 @@ get_local_items(Acc, From, #jid{lserver = LServer} = To, Node, Lang) -> ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); ["config", _] -> ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); - ?NS_ADMINL(_) -> + ?NS_ADMINL("add-user") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("delete-user") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("end-user-session") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("get-user-password") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("change-user-password") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("get-user-lastlogin") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("user-stats") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("get-registered-users-num") -> + ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); + ?NS_ADMINL("get-online-users-num") -> ?ITEMS_RESULT(Allow, LNode, {error, ?ERR_FORBIDDEN}); _ -> Acc