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 same restriction aggregation model
Kabiru Mwenja47103e1f7f96
diff --git a/app/services/journals/create_service.rb b/app/services/journals/create_service.rbindex d0b18a409e4..8488d33c3a7 100644--- a/app/services/journals/create_service.rb+++ b/app/services/journals/create_service.rb@@ -889,7 +889,7 @@ module Journalssame_user?(predecessor) &&same_cause?(predecessor, cause) &&only_one_note(predecessor, notes) &&- unrestricted_journal?(restricted)+ same_restriction(predecessor, restricted)enddef aggregation_active?@@ -904,8 +904,8 @@ module Journalspredecessor.notes.empty? || notes.empty?end- def unrestricted_journal?(restricted)- !restricted+ def same_restriction(predecessor, restricted)+ predecessor.restricted == restrictedenddef same_user?(predecessor)