{matched, AllowDeny}

This commit is contained in:
Ery Lee 2015-03-31 10:40:28 +08:00
parent d9e60faa24
commit 26e296a8f5
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ match(_User, _Topic, {AllowDeny, all}) when ?'allow|deny'(AllowDeny) ->
match(User, Topic, {AllowDeny, Who, _PubSub, TopicFilters})
when ?'allow|deny'(AllowDeny) ->
case match_who(User, Who) andalso match_topics(User, Topic, TopicFilters) of
true -> AllowDeny;
true -> {matched, AllowDeny};
false -> nomatch
end.