http publish authorized match is_super

This commit is contained in:
turtled 2016-11-01 14:48:21 +08:00
parent 6ddfb7f2cb
commit a443d3aa08
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ authorized(Req) ->
case emqttd_access_control:auth(#mqtt_client{username = Username, peername = Peer}, Password) of
ok ->
true;
%% http publish is_super to true?
{ok, IsSuper} ->
true;
{error, Reason} ->
lager:error("HTTP Auth failure: username=~s, reason=~p", [Username, Reason]),
false