{matched, AllowDeny}
This commit is contained in:
parent
d9e60faa24
commit
26e296a8f5
|
@ -100,7 +100,7 @@ match(_User, _Topic, {AllowDeny, all}) when ?'allow|deny'(AllowDeny) ->
|
||||||
match(User, Topic, {AllowDeny, Who, _PubSub, TopicFilters})
|
match(User, Topic, {AllowDeny, Who, _PubSub, TopicFilters})
|
||||||
when ?'allow|deny'(AllowDeny) ->
|
when ?'allow|deny'(AllowDeny) ->
|
||||||
case match_who(User, Who) andalso match_topics(User, Topic, TopicFilters) of
|
case match_who(User, Who) andalso match_topics(User, Topic, TopicFilters) of
|
||||||
true -> AllowDeny;
|
true -> {matched, AllowDeny};
|
||||||
false -> nomatch
|
false -> nomatch
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue