diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-03 12:09:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-03 12:09:43 +0300 |
commit | 10d4625ed3b73f73bc67bf7d35347dcd1912cf7b (patch) | |
tree | ee42f413ec64e2a60550d741e8428615ecafb393 /app/models/note.rb | |
parent | f743b4205666c85465eb6c6b0487414e6ec331da (diff) |
Add latest changes from gitlab-org/gitlab@master
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 b3c5a7a0ef7..6375d3f777f 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_internal_note : :read_note + end + private def system_note_viewable_by?(user) |