diff options
author | Richard Ipsum <richardipsum@fastmail.co.uk> | 2014-05-04 11:36:28 +0100 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2014-05-04 12:44:49 +0100 |
commit | f6f975c4b3cd4b0417c61bb01f246297e87321f1 (patch) | |
tree | 412676946d7a7752bdf71c14b33d203690d806f8 | |
parent | 25978dd00e0a77b9fcc36264a6602510c7407dab (diff) | |
download | gitano-f6f975c4b3cd4b0417c61bb01f246297e87321f1.tar.gz |
Make gitano-smart-http pass repo_root to is_authorized
-rwxr-xr-x | bin/gitano-smart-http.cgi.in | 3 |
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 |