25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Correct access_matches spec

This commit is contained in:
Paweł Chmielowski 2017-02-16 15:38:30 +01:00
parent 218eeae797
commit eec63dbefe

View File

@ -460,7 +460,7 @@ resolve_access(Name, Host) when is_atom(Name) ->
resolve_access(Rules, _Host) when is_list(Rules) ->
Rules.
-spec access_matches(atom()|list(), any(), global|binary()) -> allow|deny.
-spec access_matches(atom()|list(), any(), global|binary()) -> allow|deny|atom()|integer().
access_matches(Rules, Data, Host) ->
case resolve_access(Rules, Host) of
all -> allow;