Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/work_items_controller.rb')
-rw-r--r--app/controllers/projects/work_items_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/work_items_controller.rb b/app/controllers/projects/work_items_controller.rb
index 1bd2762f277..d39664e1deb 100644
--- a/app/controllers/projects/work_items_controller.rb
+++ b/app/controllers/projects/work_items_controller.rb
@@ -2,12 +2,12 @@
class Projects::WorkItemsController < Projects::ApplicationController
before_action do
- push_frontend_feature_flag(:work_items, project, default_enabled: :yaml)
+ push_force_frontend_feature_flag(:work_items, project&.work_items_feature_flag_enabled?)
end
- feature_category :not_owned
+ feature_category :team_planning
def index
- render_404 unless Feature.enabled?(:work_items, project, default_enabled: :yaml)
+ render_404 unless project&.work_items_feature_flag_enabled?
end
end