1
0
Fork 0
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:
Mickael Remond 2016-03-30 14:49:19 +02:00
parent ead83b008c
commit 36ac1cd6c7
2 changed files with 3 additions and 2 deletions

View file

@ -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);