25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Indicate explicitly what nodes are handled by mod_configure

This commit is contained in:
Badlop 2010-05-04 11:40:35 +02:00
parent dc4d72cf77
commit 4d1dfe8914

View File

@ -243,7 +243,23 @@ get_local_features(Acc, From, To, Node, _Lang) ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
["config", _] ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
["http:" | _] ->
?NS_ADMINL("add-user") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("delete-user") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("end-user-session") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("get-user-password") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("change-user-password") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("get-user-lastlogin") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("user-stats") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("get-registered-users-num") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
?NS_ADMINL("get-online-users-num") ->
?INFO_RESULT(Allow, [?NS_ADHOC_s]);
_ ->
Acc
@ -461,7 +477,23 @@ get_local_items(Acc, From, To, Node, Lang) ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
["config", _] ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL(_) ->
?NS_ADMINL("add-user") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("delete-user") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("end-user-session") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("get-user-password") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("change-user-password") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("get-user-lastlogin") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("user-stats") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("get-registered-users-num") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
?NS_ADMINL("get-online-users-num") ->
?ITEMS_RESULT(Allow, LNode, {error, 'forbidden'});
_ ->
Acc