diff options
Diffstat (limited to 'app/controllers/projects/alert_management_controller.rb')
-rw-r--r-- | app/controllers/projects/alert_management_controller.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/controllers/projects/alert_management_controller.rb b/app/controllers/projects/alert_management_controller.rb index 46db87dba94..5480e19072d 100644 --- a/app/controllers/projects/alert_management_controller.rb +++ b/app/controllers/projects/alert_management_controller.rb @@ -1,9 +1,14 @@ # frozen_string_literal: true class Projects::AlertManagementController < Projects::ApplicationController + before_action :ensure_feature_enabled + def index - respond_to do |format| - format.html - end + end + + private + + def ensure_feature_enabled + render_404 unless Feature.enabled?(:alert_management_minimal, project) end end |