blob: 676c0ac40efbf220ae63e00928ef7879e3654ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
module Banzai
module ReferenceParser
class AlertParser < BaseParser
self.reference_type = :alert
def self.reference_class
AlertManagement::Alert
end
def references_relation
AlertManagement::Alert
end
private
def can_read_reference?(user, project, node)
can?(user, :read_alert_management_alert, project)
end
end
end
end
|