mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix Access check: the rule can be defined in a vhost or global.
SVN Revision: 2137
This commit is contained in:
parent
437c9d07f5
commit
ff3fd02115
@ -394,7 +394,7 @@ get_md5(AccountPass) ->
|
|||||||
|
|
||||||
check_access(Access, User, Server) ->
|
check_access(Access, User, Server) ->
|
||||||
%% Check this user has access permission
|
%% 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;
|
allow -> true;
|
||||||
deny -> false
|
deny -> false
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user