Fix Access check: the rule can be defined in a vhost or global.

SVN Revision: 2136
This commit is contained in:
Badlop 2009-06-01 18:04:18 +00:00
parent fa5b06f542
commit 05187325ee
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ get_md5(AccountPass) ->
check_access(Access, User, Server) ->
%% Check this user has access permission
case acl:match_rule(global, Access, jlib:make_jid(User, Server, "")) of
case acl:match_rule(Server, Access, jlib:make_jid(User, Server, "")) of
allow -> true;
deny -> false
end.