mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-17 15:29:23 +02:00
Don't check whether the contact is a locally registered account or not (EJABS-1550)
This commit is contained in:
parent
2d3bbd43d7
commit
2e33904bb8
@ -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;
|
||||
|
@ -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]}};
|
||||
|
Loading…
Reference in New Issue
Block a user