From 7393da88924bd46637a27a6602ef99a8c3676e39 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 7 Aug 2012 19:38:09 +0000 Subject: [PATCH] There is only one global provider name space, therefore allow LuaAuthzProvider only in global scope. Remove unnecessary server config field. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370466 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/mod_lua.c | 2 +- modules/lua/mod_lua.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 5deb3fe2c5..23aaf1a774 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -1324,7 +1324,7 @@ static const char *register_authz_provider(cmd_parms *cmd, void *_cfg, const char *function) { lua_authz_provider_spec *spec; - const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); + const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); if (err) return err; diff --git a/modules/lua/mod_lua.h b/modules/lua/mod_lua.h index 3e06d1fbec..c51c352399 100644 --- a/modules/lua/mod_lua.h +++ b/modules/lua/mod_lua.h @@ -138,8 +138,6 @@ typedef struct /* value of the LuaRoot directive */ const char *root_path; - - apr_hash_t *authz_providers; } ap_lua_server_cfg; typedef struct