Patch #44735 ยป 0001-Use-Array-intersect-to-check-whether-a-principal-wat.patch
| lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb | ||
|---|---|---|
| 116 | 116 |
user_ids |= principal.group_ids if principal.is_a?(User) |
| 117 | 117 |
user_ids.compact! |
| 118 | 118 | |
| 119 |
(self.watcher_user_ids & user_ids).any?
|
|
| 119 |
watcher_user_ids.intersect?(user_ids)
|
|
| 120 | 120 |
end |
| 121 | 121 | |
| 122 | 122 |
def notified_watchers |