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
Check for contextual permissions on `#possible_watcher?`
Aaron Contreras6b00d102bb32
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 90b5dcbaddf..864fbc5cb67 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@@ -97,7 +97,9 @@ module Redmineenddef possible_watcher?(user)- user.allowed_in_project?(self.class.acts_as_watchable_permission, project)+ user.allowed_based_on_permission_context?(self.class.acts_as_watchable_permission,+ project:,+ entity: self)end# Returns all users that could potentially be watchers.