summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-10 16:46:51 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-10 16:46:51 +0000
commit04ac4180cb5ba0df460034c7e64862056fd498b3 (patch)
treeca5267d12fa2aab80c1c35593b96c8cfceaa747b /app/controllers/projects
parent4e9ceea7f8ff3e097ad45f6f54c1b7165248e848 (diff)
downloadgitlab-ce-04ac4180cb5ba0df460034c7e64862056fd498b3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/metrics_dashboard_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/projects/metrics_dashboard_controller.rb b/app/controllers/projects/metrics_dashboard_controller.rb
index 08757d11912..510c882d537 100644
--- a/app/controllers/projects/metrics_dashboard_controller.rb
+++ b/app/controllers/projects/metrics_dashboard_controller.rb
@@ -9,6 +9,9 @@ module Projects
include Gitlab::Utils::StrongMemoize
before_action :authorize_metrics_dashboard!
+ before_action :render_404, only: :show, if: -> do
+ Feature.enabled?(:remove_monitor_metrics)
+ end
feature_category :metrics
urgency :low