BigW Consortium Gitlab

label_parser.rb 308 Bytes
Newer Older
1 2 3 4 5 6 7 8
module Banzai
  module ReferenceParser
    class LabelParser < BaseParser
      self.reference_type = :label

      def references_relation
        Label
      end
9 10 11

      private

12
      def can_read_reference?(user, ref_project, node)
13 14
        can?(user, :read_label, ref_project)
      end
15 16 17
    end
  end
end