http publish authorized match is_super
This commit is contained in:
parent
6ddfb7f2cb
commit
a443d3aa08
|
@ -137,6 +137,9 @@ authorized(Req) ->
|
||||||
case emqttd_access_control:auth(#mqtt_client{username = Username, peername = Peer}, Password) of
|
case emqttd_access_control:auth(#mqtt_client{username = Username, peername = Peer}, Password) of
|
||||||
ok ->
|
ok ->
|
||||||
true;
|
true;
|
||||||
|
%% http publish is_super to true?
|
||||||
|
{ok, IsSuper} ->
|
||||||
|
true;
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
lager:error("HTTP Auth failure: username=~s, reason=~p", [Username, Reason]),
|
lager:error("HTTP Auth failure: username=~s, reason=~p", [Username, Reason]),
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in New Issue