[ejabberd] mod_vcard access control

Mark Plomer plomer at boerse-go.de
Thu Jan 28 19:47:30 MSK 2010


Okay thanks. We'll try it :-)

-----
Such feature isn't implemented.

One-liner patch to deny write access to all users:

--- a/src/mod_vcard.erl
+++ b/src/mod_vcard.erl
@@ -174,7 +174,7 @@ process_sm_iq(From, To, #iq{type = Type, sub_el =
SubEl} = IQ) ->
     case Type of
        set ->
            #jid{user = User, lserver = LServer} = From,
-           case lists:member(LServer, ?MYHOSTS) of
+           case lists:member(LServer, []) of %% Always returns false
                true ->
                    set_vcard(User, LServer, SubEl),
                    IQ#iq{type = result, sub_el = []};



More information about the ejabberd mailing list