Skip to content

Commit

Permalink
fixed rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Christy Karpinski authored and Christy Karpinski committed Aug 1, 2023
1 parent ed27729 commit 0ac9e45
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,6 @@ def super_and_current_users
users
end

##
# Extra authentication for palni-palci during development phase
def authenticate_if_needed
# Disable this extra authentication in test mode
return true if Rails.env.test?
if (is_hidden || is_staging) && !is_api_or_pdf
authenticate_or_request_with_http_basic do |username, password|
username == "atla" && password == "hyku"
end
end
end

private

def require_active_account!
Expand Down

0 comments on commit 0ac9e45

Please sign in to comment.