From 3a8da27d86058dae9e60467a08b146f9fc676736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 21 Jun 2016 13:18:24 +0200 Subject: Use {access,shaper}_rules_validator in other places where access rules are used --- src/mod_http_upload.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mod_http_upload.erl') diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 0bb383700..a2aa75465 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -178,7 +178,7 @@ mod_opt_type(host) -> mod_opt_type(name) -> fun iolist_to_binary/1; mod_opt_type(access) -> - fun(A) when is_atom(A) -> A end; + fun acl:access_rules_validator/1; mod_opt_type(max_size) -> fun(I) when is_integer(I), I > 0 -> I; (infinity) -> infinity @@ -235,7 +235,7 @@ init({ServerHost, Opts}) -> fun iolist_to_binary/1, <<"HTTP File Upload">>), Access = gen_mod:get_opt(access, Opts, - fun(A) when is_atom(A) -> A end, + fun acl:access_rules_validator/1, local), MaxSize = gen_mod:get_opt(max_size, Opts, fun(I) when is_integer(I), I > 0 -> I; -- cgit v1.2.3