debian-mirror-gitlab/lib/banzai/reference_parser/mentioned_user_parser.rb
2019-12-21 20:55:43 +05:30

18 lines
341 B
Ruby

# 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