mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix configuration commands (#1432)
This commit is contained in:
parent
25ddb6c69d
commit
32d548d99b
@ -341,10 +341,9 @@ adhoc_local_items(Acc, From,
|
|||||||
PermLev = get_permission_level(From),
|
PermLev = get_permission_level(From),
|
||||||
Nodes = recursively_get_local_items(PermLev, LServer,
|
Nodes = recursively_get_local_items(PermLev, LServer,
|
||||||
<<"">>, Server, Lang),
|
<<"">>, Server, Lang),
|
||||||
Nodes1 = lists:filter(fun (N) ->
|
Nodes1 = lists:filter(
|
||||||
Nd = fxml:get_tag_attr_s(<<"node">>, N),
|
fun (#disco_item{node = Nd}) ->
|
||||||
F = get_local_features([], From, To, Nd,
|
F = get_local_features([], From, To, Nd, Lang),
|
||||||
Lang),
|
|
||||||
case F of
|
case F of
|
||||||
{result, [?NS_COMMANDS]} -> true;
|
{result, [?NS_COMMANDS]} -> true;
|
||||||
_ -> false
|
_ -> false
|
||||||
|
Loading…
Reference in New Issue
Block a user