mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Add support for checking access rules conformance for commands
This commit is contained in:
parent
caf2c20210
commit
68555ff466
4 changed files with 51 additions and 23 deletions
|
@ -136,6 +136,7 @@ check_permissions(Request, Command) ->
|
|||
{ok, CommandPolicy, Scope} = ejabberd_commands:get_command_policy_and_scope(Call),
|
||||
check_permissions2(Request, Call, CommandPolicy, Scope);
|
||||
_ ->
|
||||
%% TODO Should this be a 404 or 400 instead of 401 ?
|
||||
unauthorized_response()
|
||||
end.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue