BigW Consortium Gitlab

milestone_parser.rb 318 Bytes
Newer Older
1 2 3 4 5 6 7 8
module Banzai
  module ReferenceParser
    class MilestoneParser < BaseParser
      self.reference_type = :milestone

      def references_relation
        Milestone
      end
9 10 11 12 13 14

      private

      def can_read_reference?(user, ref_project)
        can?(user, :read_milestone, ref_project)
      end
15 16 17
    end
  end
end