Skip to content

Commit

Permalink
Forgot to uncomment a few lines that were for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Lewon committed Sep 29, 2011
1 parent 1d93a7c commit 4782c5f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helpers.rb
Expand Up @@ -20,14 +20,14 @@ def set_block(&block)
end

def init(env)
#@username = (env["HTTP_X_USERNAME"] || ENV["HTTP_X_USERNAME"]) or raise "Must be logged in"
#@groups = CGI.unescape(env["HTTP_X_GROUPS"] || ENV["HTTP_X_GROUPS"]).split("|")
@username = (env["HTTP_X_USERNAME"] || ENV["HTTP_X_USERNAME"]) or raise "Must be logged in"
@groups = CGI.unescape(env["HTTP_X_GROUPS"] || ENV["HTTP_X_GROUPS"]).split("|")
@host = env["HTTP_HOST"]
@local = @host.match(/local|dev/)
#@ny4 = @host.match(/ny4/)
#if @username == "nobody" && ! request.path_info.match(OK_PATH_REGEX)
# raise "Must be logged in"
#end
@ny4 = @host.match(/ny4/)
if @username == "nobody" && ! request.path_info.match(OK_PATH_REGEX)
raise "Must be logged in"
end
@stack = form_hash(env, "stack") unless @stack
@filename = "#{Time.now.to_i}-#{@username}-#{dep_method(env)}.html"
end
Expand Down

0 comments on commit 4782c5f

Please sign in to comment.