From f6f975c4b3cd4b0417c61bb01f246297e87321f1 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sun, 4 May 2014 11:36:28 +0100 Subject: Make gitano-smart-http pass repo_root to is_authorized --- bin/gitano-smart-http.cgi.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/gitano-smart-http.cgi.in b/bin/gitano-smart-http.cgi.in index 017c4e7..f294b28 100755 --- a/bin/gitano-smart-http.cgi.in +++ b/bin/gitano-smart-http.cgi.in @@ -59,7 +59,8 @@ if request_method == "GET" or request_method == "POST" then local user = os.getenv("REMOTE_USER") or "gitano/anonymous" local cmdline = parse_request(request_method) - if cmdline and gitano.auth.is_authorized(user, "http", cmdline) then + if cmdline and gitano.auth.is_authorized(user, "http", cmdline, + os.getenv("GITANO_ROOT")) then local proc = subprocess.spawn_simple({"git", "http-backend"}) local exit_code -- cgit v1.2.1