Commit f05a9968 authored by Justin Ho's avatar Justin Ho

Change logic for return 404

To avoid a failing spec and repeating the `not_found`
before_action which causes issues.
parent f0d12cca
......@@ -5,11 +5,12 @@ class Admin::IntegrationsController < Admin::ApplicationController
include IntegrationsHelper
before_action :not_found, unless: -> { instance_level_integrations? }
before_action :not_found, unless: -> { instance_level_integration_overrides? }, only: :overrides
feature_category :integrations
def overrides
return render_404 unless instance_level_integration_overrides?
respond_to do |format|
format.json do
projects = Project.with_active_integration(integration.class).merge(::Integration.not_inherited)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment