gitlab-org--gitlab-foss/lib/banzai/reference_parser/mentioned_user_parser.rb

19 lines
341 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Banzai
module ReferenceParser
class MentionedUserParser < BaseParser
self.reference_type = :user
def references_relation
User
end
# any user can be mentioned by username
def can_read_reference?(user, ref_attr, node)
true
end
end
end
end