mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Returns unauthorized error when we do not have correct credentials
This commit is contained in:
parent
ead83b008c
commit
36ac1cd6c7
2 changed files with 3 additions and 2 deletions
|
@ -183,7 +183,9 @@ check_permissions2(#request{ip={IP, _Port}}, Call, _Policy) ->
|
|||
end;
|
||||
_ ->
|
||||
unauthorized_response()
|
||||
end.
|
||||
end;
|
||||
check_permissions2(_Request, _Call, _Policy) ->
|
||||
unauthorized_response().
|
||||
|
||||
oauth_check_token(Scope, Token) when is_atom(Scope) ->
|
||||
oauth_check_token(atom_to_binary(Scope, utf8), Token);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue