Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2016-06-21 14:18:24 +0300
committerPaweł Chmielowski <pchmielowski@process-one.net>2016-06-21 14:18:24 +0300
commit3a8da27d86058dae9e60467a08b146f9fc676736 (patch)
tree117fc3dadec3dca91fad5fb4646bd8248ec5ec52 /src/mod_http_upload.erl
parent52d45604ba705bdf029eda6c7b39622b8f2a8ebe (diff)
Use {access,shaper}_rules_validator in other places where access rules are used
Diffstat (limited to 'src/mod_http_upload.erl')
-rw-r--r--src/mod_http_upload.erl4
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;