diff options
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index daac489757b..54453b184d5 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -706,6 +706,10 @@ class Note < ApplicationRecord super.sub!('task', 'checklist item') end + def issuable_ability_name + confidential? ? :read_confidential_notes : :read_note + end + private def system_note_viewable_by?(user) |