mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
More strict check for commands with policy user
This commit is contained in:
parent
17f87eb899
commit
fc2b7018cc
@ -656,7 +656,12 @@ check_access(Command, Access, Auth, CallerInfo)
|
|||||||
{ok, User, Server} ->
|
{ok, User, Server} ->
|
||||||
check_access2(Access, CallerInfo#{usr => jid:split(jid:make(User, Server, <<>>))}, Server);
|
check_access2(Access, CallerInfo#{usr => jid:split(jid:make(User, Server, <<>>))}, Server);
|
||||||
no_auth_provided ->
|
no_auth_provided ->
|
||||||
check_access2(Access, CallerInfo, global);
|
case Command#ejabberd_commands.policy of
|
||||||
|
user ->
|
||||||
|
false;
|
||||||
|
_ ->
|
||||||
|
check_access2(Access, CallerInfo, global)
|
||||||
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
false
|
false
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user