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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Show quarantined menu only if EE or quarantined files exist
Oliver Günther9e5b0092a42c
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rbindex b1ad0207cee..a5ce41ce3da 100644--- a/config/initializers/menus.rb+++ b/config/initializers/menus.rb@@ -373,7 +373,10 @@ Redmine::MenuManager.map :admin_menu do |menu|{ controller: '/admin/attachments/quarantined_attachments', action: :index },caption: :'antivirus_scan.quarantined_attachments.title',parent: :attachments,- if: Proc.new { User.current.admin? && EnterpriseToken.allows_to?(:virus_scanning) }+ if: Proc.new {+ User.current.admin? &&+ (EnterpriseToken.allows_to?(:virus_scanning) || Attachment.status_quarantined.any?)+ }menu.push :enumerations,{ controller: '/enumerations' },