From fdf69dcd0d5d202dbfe9880bb88718f9fdcf559a Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Thu, 8 Dec 2016 16:28:47 +0100 Subject: [PATCH] API call does not necessary use token, it could use basic auth --- src/mod_http_api.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 3700060cb..f654164fe 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -298,7 +298,7 @@ handle(Call, Auth, Args, Version) when is_atom(Call), is_list(Args) -> throw:{error, account_unprivileged} -> {403, 31, <<"Command need to be run with admin priviledge.">>}; throw:{error, access_rules_unauthorized} -> - {403, 32, <<"AccessRules: Account associated to token does not have the right to perform the operation.">>}; + {403, 32, <<"AccessRules: Account does not have the right to perform the operation.">>}; throw:{invalid_parameter, Msg} -> {400, iolist_to_binary(Msg)}; throw:{error, Why} when is_atom(Why) ->