Skip to content

Commit

Permalink
Skip before filters for health controller (#2005)
Browse files Browse the repository at this point in the history
Checking the health of the application already skips the require login
before filter and therefore we cannot check if the current_user is
permitted or set the organization.
This fixes our health check.
  • Loading branch information
mattwr18 authored Sep 2, 2024
1 parent 777877f commit 1aa5989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/health_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class HealthController < ApplicationController
skip_before_action :require_login
skip_before_action :require_login, :user_permitted?, :set_organization

def index
ActiveRecord::Base.connection.execute('select 1')
Expand Down

0 comments on commit 1aa5989

Please sign in to comment.