summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2014-05-04 11:35:41 +0100
committerRichard Ipsum <richardipsum@fastmail.co.uk>2014-05-04 12:44:49 +0100
commit5f73b47797666dcc6095a8151981d9ef94870f36 (patch)
tree70fd3cd297d272fd001f576879ddfd9706e685fa
parent8a2d899b72f0adcd1c40f32c355d646cf72b3923 (diff)
downloadgitano-5f73b47797666dcc6095a8151981d9ef94870f36.tar.bz2
Add repo_root parameter to is_authorized
-rw-r--r--lib/gitano/auth.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitano/auth.lua b/lib/gitano/auth.lua
index 8c3a4e6..2e275dd 100644
--- a/lib/gitano/auth.lua
+++ b/lib/gitano/auth.lua
@@ -49,8 +49,7 @@ local function set_environment(repo_root, repo, context, transactionid)
return env
end
-local function is_authorized(user, source, cmdline)
- local repo_root = os.getenv("GITANO_ROOT")
+local function is_authorized(user, source, cmdline, repo_root)
local keytag = ""
local authorized = false