From 36ac1cd6c7a86cd57e14121756efa590f2d8b1b7 Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Wed, 30 Mar 2016 14:49:19 +0200 Subject: Returns unauthorized error when we do not have correct credentials --- src/mod_http_api.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mod_http_api.erl') diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 96fa90735..bbd4a28de 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -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); -- cgit v1.2.3