1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

Fix access_commands option handling

This commit is contained in:
Alexey Shchepin 2015-10-19 18:50:26 +03:00
parent 06701b126b
commit 1f2b7e8f20

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} ->