Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add feature flag for Project List sharing while in development

Klaus Zanders1954629b84d1
diff --git a/app/components/projects/index_page_header_component.html.erb b/app/components/projects/index_page_header_component.html.erb
index dff8c5e76b1..ef38c224301 100644
--- a/app/components/projects/index_page_header_component.html.erb
+++ b/app/components/projects/index_page_header_component.html.erb
@@ -81,7 +81,7 @@
end
if query.persisted?
- if can_publish?
+ if can_publish? && OpenProject::FeatureDecisions.project_list_sharing_active?
if query.public?
menu.with_item(
label: t(:button_unpublish),
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index e98381d9be1..54ed096da78 100644
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@ -38,3 +38,5 @@ require_relative "../../lib_static/open_project/feature_decisions"
# initializer 'the_engine.feature_decisions' do
# OpenProject::FeatureDecisions.add :some_flag
# end
+
+OpenProject::FeatureDecisions.add :project_list_sharing