Rename the PUBSUB macro to PS

This commit is contained in:
Feng Lee 2017-03-06 18:46:09 +08:00
parent dae3d22bef
commit f2a818a4a4
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ auth(Client, Password, [{Mod, State, _Seq} | Mods]) ->
Client :: mqtt_client(),
PubSub :: pubsub(),
Topic :: binary()).
check_acl(Client, PubSub, Topic) when ?PUBSUB(PubSub) ->
check_acl(Client, PubSub, Topic) when ?PS(PubSub) ->
case lookup_mods(acl) of
[] -> case emqttd:env(allow_anonymous, false) of
true -> allow;