Fix access_commands option handling

This commit is contained in:
Alexey Shchepin 2015-10-19 18:50:26 +03:00
parent 06701b126b
commit 1f2b7e8f20
1 changed files with 2 additions and 1 deletions

View File

@ -491,7 +491,8 @@ check_access(_Command, _Access, admin) ->
check_access(_Command, _Access, {_User, _Server, _, true}) ->
false;
check_access(Command, Access, Auth)
when Command#ejabberd_commands.policy == open;
when Access =/= all;
Command#ejabberd_commands.policy == open;
Command#ejabberd_commands.policy == user ->
case check_auth(Command, Auth) of
{ok, User, Server} ->