summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/incident_management/timeline_event/promote_from_note.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/incident_management/timeline_event/promote_from_note.rb')
-rw-r--r--app/graphql/mutations/incident_management/timeline_event/promote_from_note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/graphql/mutations/incident_management/timeline_event/promote_from_note.rb b/app/graphql/mutations/incident_management/timeline_event/promote_from_note.rb
index bb1da9278ff..c29dc98c872 100644
--- a/app/graphql/mutations/incident_management/timeline_event/promote_from_note.rb
+++ b/app/graphql/mutations/incident_management/timeline_event/promote_from_note.rb
@@ -35,7 +35,7 @@ module Mutations
end
def authorize!(object)
- raise_noteable_not_incident! if object && !object.try(:incident?)
+ raise_noteable_not_incident! if object && !object.try(:incident_type_issue?)
super
end