diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2014-05-16 18:03:13 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2014-05-16 18:03:13 +0100 |
commit | f010726f585dc15f71673ca4be749757e9ed10cb (patch) | |
tree | 5a85de10bfdc398392e3176df2382172b956d942 /bin/gitano-smart-http.cgi.in | |
parent | 93f36f49ff6a92f307e1eacbdd91673734ca7dc5 (diff) | |
parent | 800ec03542c7bc09afbddce9a2b01f94d615fce9 (diff) | |
download | gitano-f010726f585dc15f71673ca4be749757e9ed10cb.tar.gz |
Merge remote-tracking branch 'ri/richardipsum/refactor'
Diffstat (limited to 'bin/gitano-smart-http.cgi.in')
-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 |