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

[32982] Expose BIM export format only on bim mode

Oliver Günther7cbffc4ec613
diff --git a/modules/bim/lib/open_project/bim/patches/api/v3/export_formats.rb b/modules/bim/lib/open_project/bim/patches/api/v3/export_formats.rb
index 408a8bd8cac..741e75383ce 100644
--- a/modules/bim/lib/open_project/bim/patches/api/v3/export_formats.rb
+++ b/modules/bim/lib/open_project/bim/patches/api/v3/export_formats.rb
@@ -1,7 +1,11 @@
module OpenProject::Bim::Patches
module API::V3::ExportFormats
def representation_formats
- super + [representation_format_bcf]
+ if OpenProject::Configuration.bim?
+ super + [representation_format_bcf]
+ else
+ super
+ end
end
def representation_format_bcf