aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_api.erl
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-12-08 16:28:47 +0100
committerMickael Remond <mremond@process-one.net>2016-12-08 16:28:47 +0100
commitfdf69dcd0d5d202dbfe9880bb88718f9fdcf559a (patch)
tree11c431d075190468cee87a584404a04b6af4d647 /src/mod_http_api.erl
parentRecognize "- who:" not only "who:" syntax in api_permissions (diff)
API call does not necessary use token, it could use basic auth
Diffstat (limited to 'src/mod_http_api.erl')
-rw-r--r--src/mod_http_api.erl2
1 files changed, 1 insertions, 1 deletions
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) ->