debian-mirror-gitlab/app/controllers/projects/work_items_controller.rb
2021-11-11 11:23:49 +05:30

14 lines
342 B
Ruby

# frozen_string_literal: true
class Projects::WorkItemsController < Projects::ApplicationController
before_action do
push_frontend_feature_flag(:work_items, project, default_enabled: :yaml)
end
feature_category :not_owned
def index
render_404 unless Feature.enabled?(:work_items, project, default_enabled: :yaml)
end
end