]> git.pld-linux.org Git - packages/ejabberd.git/commitdiff
- Fix bug in the mod_vcard_ldap.erl changes
authorareq <areq@pld-linux.org>
Tue, 13 Apr 2010 20:27:40 +0000 (20:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  https://support.process-one.net/browse/EJAB-797

Changed files:
    ejabberd-vcard-access-get.patch -> 1.2

ejabberd-vcard-access-get.patch

index 4584bd05204168ac20726bdb26198d30fb4d901f..02c510c56dd03bb472f910bc7e6ee72c020d100d 100644 (file)
@@ -110,7 +110,7 @@ index 4384087..c54e8ea 100644
  
  set_vcard(User, LServer, VCARD) ->
 diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl
-index f4078df..c5c830d 100644
+index f4078df..074bdf7 100644
 --- a/src/mod_vcard_ldap.erl
 +++ b/src/mod_vcard_ldap.erl
 @@ -241,38 +241,47 @@ process_local_iq(_From, _To, #iq{type = Type, lang = Lang, sub_el = SubEl} = IQ)
@@ -158,8 +158,8 @@ index f4078df..c5c830d 100644
 +    #jid{lserver = FromLServer} = From,
 +    LServer = State#state.serverhost,
 +    Access = gen_mod:get_module_opt(LServer, ?MODULE, access_get, all),
-+    case ejabberd_auth:is_user_exists(LUser, LServer)
-+      and acl:match_rule(FromLServer, Access, From) of
++    case ejabberd_auth:is_user_exists(LUser, LServer) andalso
++      (acl:match_rule(FromLServer, Access, From) == allow) of
 +      true ->
 +          process_vcard_ldap_get(LUser, LServer, IQ, State);
 +      _ ->
This page took 0.572652 seconds and 4 git commands to generate.