summaryrefslogtreecommitdiff
path: root/bin/gitano-smart-http.cgi.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gitano-smart-http.cgi.in')
-rwxr-xr-xbin/gitano-smart-http.cgi.in3
1 files changed, 2 insertions, 1 deletions
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