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

Re-use `.active?` in `show_banners?`

Aaron Contreras78710667b69e
diff --git a/app/models/enterprise_token.rb b/app/models/enterprise_token.rb
index e35a913cdfc..8e9d58f00aa 100644
--- a/app/models/enterprise_token.rb
+++ b/app/models/enterprise_token.rb
@@ -46,7 +46,7 @@ class EnterpriseToken < ApplicationRecord
end
def show_banners?
- OpenProject::Configuration.ee_manager_visible? && (!current || current.expired?)
+ OpenProject::Configuration.ee_manager_visible? && !active?
end
def set_current_token