diff options
Diffstat (limited to 'src/mod_http_upload.erl')
-rw-r--r-- | src/mod_http_upload.erl | 4 |
1 files changed, 2 insertions, 2 deletions
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; |