summaryrefslogtreecommitdiff
path: root/src/mod_announce.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2016-06-21 13:18:24 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2016-06-21 13:18:24 +0200
commit3a8da27d86058dae9e60467a08b146f9fc676736 (patch)
tree117fc3dadec3dca91fad5fb4646bd8248ec5ec52 /src/mod_announce.erl
parentUse new access_rules_validator in couple places (diff)
Use {access,shaper}_rules_validator in other places where access rules are used
Diffstat (limited to 'src/mod_announce.erl')
-rw-r--r--src/mod_announce.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_announce.erl b/src/mod_announce.erl
index 9a9e665f..fc57d6bd 100644
--- a/src/mod_announce.erl
+++ b/src/mod_announce.erl
@@ -903,7 +903,7 @@ send_announcement_to_all(Host, SubjectS, BodyS) ->
get_access(Host) ->
gen_mod:get_module_opt(Host, ?MODULE, access,
- fun(A) when is_atom(A) -> A end,
+ fun(A) -> A end,
none).
%%-------------------------------------------------------------------------
@@ -920,6 +920,6 @@ import(LServer, DBType, LA) ->
Mod:import(LServer, LA).
mod_opt_type(access) ->
- fun (A) when is_atom(A) -> A end;
+ fun acl:access_rules_validator/1;
mod_opt_type(db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end;
mod_opt_type(_) -> [access, db_type].