From ff3fd0211553f436e2b33f0f6cc5abd38cf833ea Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 1 Jun 2009 21:04:11 +0000 Subject: [PATCH] Fix Access check: the rule can be defined in a vhost or global. SVN Revision: 2137 --- src/ejabberd_commands.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_commands.erl b/src/ejabberd_commands.erl index 19b5e5967..3a94712fe 100644 --- a/src/ejabberd_commands.erl +++ b/src/ejabberd_commands.erl @@ -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.