19 lines
341 B
Ruby
19 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
|