mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Fix access_commands option handling
This commit is contained in:
parent
06701b126b
commit
1f2b7e8f20
@ -491,7 +491,8 @@ check_access(_Command, _Access, admin) ->
|
|||||||
check_access(_Command, _Access, {_User, _Server, _, true}) ->
|
check_access(_Command, _Access, {_User, _Server, _, true}) ->
|
||||||
false;
|
false;
|
||||||
check_access(Command, Access, Auth)
|
check_access(Command, Access, Auth)
|
||||||
when Command#ejabberd_commands.policy == open;
|
when Access =/= all;
|
||||||
|
Command#ejabberd_commands.policy == open;
|
||||||
Command#ejabberd_commands.policy == user ->
|
Command#ejabberd_commands.policy == user ->
|
||||||
case check_auth(Command, Auth) of
|
case check_auth(Command, Auth) of
|
||||||
{ok, User, Server} ->
|
{ok, User, Server} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user