summaryrefslogtreecommitdiff
path: root/src/mod_configure.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-05-04 11:37:44 +0200
committerBadlop <badlop@process-one.net>2010-05-04 11:37:44 +0200
commit951808658dbf4850d1c2994d880594a5c452dbb5 (patch)
tree4cff16aa925da2447e60e54127d14453f10debd4 /src/mod_configure.erl
parentAdd xml default content type (thanks to Aaron Winborn)(EJAB-1214) (diff)
Indicate explicitly what nodes are handled by mod_configure
Diffstat (limited to 'src/mod_configure.erl')
-rw-r--r--src/mod_configure.erl36
1 files changed, 34 insertions, 2 deletions
diff --git a/src/mod_configure.erl b/src/mod_configure.erl
index e879470f..cb50a936 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