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
Use new active method to determine token
Klaus Zanders4fd3546558f2
diff --git a/app/models/enterprise_token.rb b/app/models/enterprise_token.rbindex f32b508d742..eaedf8f0a3a 100644--- a/app/models/enterprise_token.rb+++ b/app/models/enterprise_token.rb@@ -96,13 +96,13 @@ class EnterpriseToken < ApplicationRecordenddef set_active_tokens- # although we use the `active` scope here, we still need to filter out expired tokens+ # although we use the `active` scope here, we still need to filter out non-active tokens# as not all token validity period is extracted into the DBEnterpriseToken.active.order(Arel.sql("created_at DESC")).to_a- .reject(&:expired?)+ .select { it.active? && !it.invalid_domain? }enddef clear_current_tokens_cache