25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

* src/acl.erl: Slightly changed "access" option processing

SVN Revision: 377
This commit is contained in:
Alexey Shchepin 2005-07-14 23:48:57 +00:00
parent 9528651c35
commit 2d09cf8a39
2 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2005-07-15 Alexey Shchepin <alexey@sevcom.net>
* src/acl.erl: Slightly changed "access" option processing
* src/mod_disco.erl: Fixed processing of host features and
extra_domains option

View File

@ -102,7 +102,15 @@ match_rule(Host, Rule, JID) ->
undefined ->
match_acls(GACLs, JID, Host);
ACLs ->
match_acls(GACLs ++ ACLs, JID, Host)
case lists:reverse(GACLs) of
[{allow, all} | Rest] ->
match_acls(
lists:reverse(Rest) ++ ACLs ++
[{allow, all}],
JID, Host);
_ ->
match_acls(GACLs ++ ACLs, JID, Host)
end
end
end
end.