summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 14:55:14 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 16:06:49 +0000
commitabdf0cf6b732d8a7aff05c26e7cd0c82d2ea0f34 (patch)
tree37db7388421cfda0470576179b75a4edf1aaee64 /lib
parentb9f45628f4ef30ba4737121d1f84f1ebd12ea6bf (diff)
downloadgitano-abdf0cf6b732d8a7aff05c26e7cd0c82d2ea0f34.tar.gz
Ensure that if the gitano-bypass user is invoked, Gitano whines loudly
Diffstat (limited to 'lib')
-rw-r--r--lib/gitano/auth.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitano/auth.lua b/lib/gitano/auth.lua
index 11d74a4..705002d 100644
--- a/lib/gitano/auth.lua
+++ b/lib/gitano/auth.lua
@@ -104,6 +104,12 @@ local function is_authorized(user, source, cmdline, repo_root,
end
end
+ if user == "gitano-bypass" then
+ log.stdout(i18n.expand("BYPASS_USER_BANNER_HEADER"))
+ log.stdout(i18n.expand("BYPASS_USER_ALERT_MESSAGE"))
+ log.stdout(i18n.expand("BYPASS_USER_BANNER_FOOTER"))
+ end
+
if not cmd.validate(admin_conf, repo, parsed_cmdline) then
log.critical(i18n.expand("ERROR_VALIDATION_FAILED"))
return nil