mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02:00
Fix disco of bare JID
SVN Revision: 2935
This commit is contained in:
parent
887a65aa18
commit
479e5cb107
|
@ -287,7 +287,7 @@ get_sm_items(Acc, From, To, Node, Lang) ->
|
|||
{allow, ""} ->
|
||||
Nodes = [?NODEJID(To, "Configuration", <<"config">>),
|
||||
?NODEJID(To, "User Management", <<"user">>)],
|
||||
{result, Items ++ Nodes ++ [binary_to_list(R) || R <- get_user_resources(To)]};
|
||||
{result, Items ++ Nodes ++ get_user_resources(To)};
|
||||
{allow, "config"} ->
|
||||
{result, []};
|
||||
{_, "config"} ->
|
||||
|
|
|
@ -301,7 +301,7 @@ get_sm_items(Acc, From, To, <<>>, _Lang) ->
|
|||
empty -> []
|
||||
end,
|
||||
Items1 = case {LFrom, LSFrom} of
|
||||
{LTo, LSTo} -> [binary_to_list(R) || R <- get_user_resources(To)];
|
||||
{LTo, LSTo} -> get_user_resources(To);
|
||||
_ -> []
|
||||
end,
|
||||
{result, Items ++ Items1};
|
||||
|
|
Loading…
Reference in New Issue
Block a user