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

Specfiy permission for `acts_as_watchable` in Meetings

Klaus Zandersb4c88456457c
diff --git a/modules/meeting/app/models/meeting.rb b/modules/meeting/app/models/meeting.rb
index a6a9b51ebb6..0290ee8cdb9 100644
--- a/modules/meeting/app/models/meeting.rb
+++ b/modules/meeting/app/models/meeting.rb
@@ -54,7 +54,7 @@ class Meeting < ApplicationRecord
.merge(Project.allowed_to(args.first || User.current, :view_meetings))
}
- acts_as_watchable
+ acts_as_watchable permission: :view_meetings
acts_as_searchable columns: [
"#{table_name}.title",