debian-mirror-gitlab/lib/banzai/reference_parser/mentioned_user_parser.rb

19 lines
341 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# 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