24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-09-15 13:51:17 +02:00

Don't check whether the contact is a locally registered account or not (EJABS-1550)

This commit is contained in:
Badlop 2010-10-24 00:48:57 +02:00
parent 2d3bbd43d7
commit 2e33904bb8
2 changed files with 4 additions and 4 deletions

View File

@ -762,8 +762,8 @@ modify_rosteritem_groups(User, Server, JID, NewGroupsString, SubsString, PushStr
{U1, S1, _} = jlib:jid_tolower(jlib:string_to_jid(JID)),
NewGroups = string:tokens(NewGroupsString, ";"),
Push = list_to_atom(PushString),
case {ejabberd_auth:is_user_exists(U1, S1), ejabberd_auth:is_user_exists(User, Server)} of
{true, true} ->
case ejabberd_auth:is_user_exists(User, Server) of
true ->
case modify_rosteritem_groups2(User, Server, JID, NewGroups, Push, Nick, Subs) of
ok ->
0;

View File

@ -308,8 +308,8 @@ handler(_State, {call, modify_rosteritem_groups, [{struct, Struct}]}) ->
{U1, S1, _} = jlib:jid_tolower(jlib:string_to_jid(JID)),
NewGroups = string:tokens(NewGroupsString, ";"),
Push = list_to_atom(PushString),
case {ejabberd_auth:is_user_exists(U1, S1), ejabberd_auth:is_user_exists(User, Server)} of
{true, true} ->
case ejabberd_auth:is_user_exists(User, Server) of
true ->
case modify_rosteritem_groups(User, Server, JID, NewGroups, Push, Nick, Subs) of
ok ->
{false, {response, [0]}};