Commit 5d01b2e2 authored by Jason Goodman's avatar Jason Goodman Committed by Ash McKenzie

Enable Environment Dashboard by default

Remove current_user from Feature check
Add default_enabled: true
parent d3140f44
---
title: Enable environments dashboard by default
merge_request: 19838
author:
type: added
......@@ -57,7 +57,7 @@ class OperationsController < ApplicationController
end
def environments_dashboard_feature_flag
render_404 unless Feature.enabled?(:environments_dashboard, current_user)
render_404 unless Feature.enabled?(:environments_dashboard, current_user, default_enabled: true)
end
def load_projects(current_user)
......
......@@ -39,7 +39,7 @@ module EE
links << :analytics if ::Gitlab::Analytics.any_features_enabled?
if can?(current_user, :read_operations_dashboard)
links << :environments if ::Feature.enabled?(:environments_dashboard, current_user)
links << :environments if ::Feature.enabled?(:environments_dashboard, current_user, default_enabled: true)
links << :operations
end
......
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