Skip to content

Commit

Permalink
remove beta filter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvlopes committed Jan 31, 2010
1 parent 277ce48 commit 58301c2
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class ApplicationController < ActionController::Base
rescue_from ActiveRecord::RecordNotFound, :with => :not_found
rescue_from CanCan::AccessDenied, :with => :access_denied

# FIXME - remove it for final release
before_filter :beta
protected

def current_user_session
Expand All @@ -26,18 +24,11 @@ def signed_in?
end

private
# FIXME - remove it for final release
def beta
authenticate_or_request_with_http_basic do |username, password|
username == "beta" && password == YAML.load_file(File.join(RAILS_ROOT, 'tmp', 'pass.yml'))["password"]
end
end

def access_denied
render 'static/access_denied', :status => 401
end

def not_found
render 'static/not_found', :status => 404
end
end
end

0 comments on commit 58301c2

Please sign in to comment.