Rename the PUBSUB macro to PS
This commit is contained in:
parent
dae3d22bef
commit
f2a818a4a4
|
@ -70,7 +70,7 @@ auth(Client, Password, [{Mod, State, _Seq} | Mods]) ->
|
||||||
Client :: mqtt_client(),
|
Client :: mqtt_client(),
|
||||||
PubSub :: pubsub(),
|
PubSub :: pubsub(),
|
||||||
Topic :: binary()).
|
Topic :: binary()).
|
||||||
check_acl(Client, PubSub, Topic) when ?PUBSUB(PubSub) ->
|
check_acl(Client, PubSub, Topic) when ?PS(PubSub) ->
|
||||||
case lookup_mods(acl) of
|
case lookup_mods(acl) of
|
||||||
[] -> case emqttd:env(allow_anonymous, false) of
|
[] -> case emqttd:env(allow_anonymous, false) of
|
||||||
true -> allow;
|
true -> allow;
|
||||||
|
|
Loading…
Reference in New Issue