25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-11 15:08:56 +02:00

Add missing needdb check in mod_privacy, to enable blocking by group and subscription again.

This commit is contained in:
Andreas Köhler 2010-09-17 16:44:48 +02:00 committed by Badlop
parent e2c3925b7d
commit 3278f019cb
2 changed files with 4 additions and 2 deletions

View File

@ -392,12 +392,13 @@ process_list_set(LUser, LServer, {value, Name}, Els) ->
{atomic, {error, _} = Error} ->
Error;
{atomic, {result, _} = Res} ->
NeedDb = is_list_needdb(List),
ejabberd_router:route(
jlib:make_jid(LUser, LServer, ""),
jlib:make_jid(LUser, LServer, ""),
{xmlelement, "broadcast", [],
[{privacy_list,
#userlist{name = Name, list = List},
#userlist{name = Name, list = List, needdb = NeedDb},
Name}]}),
Res;
_ ->

View File

@ -392,12 +392,13 @@ process_list_set(LUser, LServer, {value, Name}, Els) ->
{atomic, {error, _} = Error} ->
Error;
{atomic, {result, _} = Res} ->
NeedDb = is_list_needdb(List),
ejabberd_router:route(
jlib:make_jid(LUser, LServer, ""),
jlib:make_jid(LUser, LServer, ""),
{xmlelement, "broadcast", [],
[{privacy_list,
#userlist{name = Name, list = List},
#userlist{name = Name, list = List, needdb = NeedDb},
Name}]}),
Res;
_ ->