diff options
Diffstat (limited to 'lib/banzai/reference_parser/external_issue_parser.rb')
-rw-r--r-- | lib/banzai/reference_parser/external_issue_parser.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/banzai/reference_parser/external_issue_parser.rb b/lib/banzai/reference_parser/external_issue_parser.rb index 6e7b7669578..1802cd04854 100644 --- a/lib/banzai/reference_parser/external_issue_parser.rb +++ b/lib/banzai/reference_parser/external_issue_parser.rb @@ -21,10 +21,14 @@ module Banzai gather_attributes_per_project(nodes, self.class.data_attribute) end - private + # we extract only external issue trackers references here, we don't extract cross-project references, + # so we don't need to do anything here. + def can_read_reference?(user, ref_project, node) + true + end - def can_read_reference?(user, ref_project) - can?(user, :read_issue, ref_project) + def nodes_visible_to_user(user, nodes) + nodes end end end |