Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-03 12:09:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-03 12:09:43 +0300
commit10d4625ed3b73f73bc67bf7d35347dcd1912cf7b (patch)
treeee42f413ec64e2a60550d741e8428615ecafb393 /app/models/note.rb
parentf743b4205666c85465eb6c6b0487414e6ec331da (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb4
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)