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
Apply scope on the acts_as_watchable libray
Aaron Contreras77ec56ab0577
diff --git a/lib_static/plugins/acts_as_watchable/lib/acts_as_watchable.rb b/lib_static/plugins/acts_as_watchable/lib/acts_as_watchable.rbindex 949a75abb4d..90b5dcbaddf 100644--- a/lib_static/plugins/acts_as_watchable/lib/acts_as_watchable.rb+++ b/lib_static/plugins/acts_as_watchable/lib/acts_as_watchable.rb@@ -112,7 +112,7 @@ module Redmineallowed_scope = if project.public?User.allowed(self.class.acts_as_watchable_permission, project)else- User.allowed_members(self.class.acts_as_watchable_permission, project)+ User.allowed_on_work_package(self.class.acts_as_watchable_permission, self)endactive_scope.where(id: allowed_scope)