mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
In match_acl/3, use string() version of User/Server/Resource to match an
ACL. PR: EJABP-1 SVN Revision: 1837
This commit is contained in:
parent
03f2de75f5
commit
8a413018c2
@ -1,3 +1,8 @@
|
||||
2009-01-21 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
|
||||
|
||||
* src/acl.erl (match_acl/3): Use string() version of
|
||||
User/Server/Resource to match an ACL.
|
||||
|
||||
2009-01-19 Pablo Polvorin <pablo.polvorin@process-one.net>
|
||||
|
||||
* src/cyrsasl_digest.erl: Typo (prolists -> proplists).
|
||||
|
@ -158,7 +158,9 @@ match_acl(ACL, JID, Host) ->
|
||||
all -> true;
|
||||
none -> false;
|
||||
_ ->
|
||||
{User, Server, Resource} = jlib:short_prepd_jid(JID),
|
||||
User = exmpp_jid:lnode_as_list(JID),
|
||||
Server = exmpp_jid:ldomain_as_list(JID),
|
||||
Resource = exmpp_jid:lresource_as_list(JID),
|
||||
lists:any(fun(#acl{aclspec = Spec}) ->
|
||||
case Spec of
|
||||
all ->
|
||||
|
Loading…
Reference in New Issue
Block a user