debian-mirror-gitlab/app/controllers/projects/work_items_controller.rb
2022-06-21 17:19:12 +05:30

13 lines
341 B
Ruby

# frozen_string_literal: true
class Projects::WorkItemsController < Projects::ApplicationController
before_action do
push_force_frontend_feature_flag(:work_items, project&.work_items_feature_flag_enabled?)
end
feature_category :team_planning
def index
render_404 unless project&.work_items_feature_flag_enabled?
end
end