]> granicus.if.org Git - ejabberd/commitdiff
API call does not necessary use token, it could use basic auth
authorMickael Remond <mremond@process-one.net>
Thu, 8 Dec 2016 15:28:47 +0000 (16:28 +0100)
committerMickael Remond <mremond@process-one.net>
Thu, 8 Dec 2016 15:28:47 +0000 (16:28 +0100)
src/mod_http_api.erl

index 3700060cb43937e362c351a2c7ea4b0b1443eecb..f654164fe9ff41401c4a5327667afce8bf27a739 100644 (file)
@@ -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) ->