summaryrefslogtreecommitdiff
path: root/app/models/discussion.rb
diff options
context:
space:
mode:
authorAlexandru Croitor <acroitor@gitlab.com>2019-09-18 11:26:20 +0300
committerYorick Peterse <yorick@yorickpeterse.com>2019-09-30 14:22:05 +0200
commitc99402c05f18c6ca8dd7b64c59527abe1e6e80d4 (patch)
tree486679c27fb41fdf9d729b7277b98237841590ab /app/models/discussion.rb
parente5fdd91318c590753cf0f920a2cf9b1a530e96f8 (diff)
downloadgitlab-ce-c99402c05f18c6ca8dd7b64c59527abe1e6e80d4.tar.gz
Add policy check if cross reference system notes are accessible
Diffstat (limited to 'app/models/discussion.rb')
-rw-r--r--app/models/discussion.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/discussion.rb b/app/models/discussion.rb
index dd896f77084..0d066d0d99f 100644
--- a/app/models/discussion.rb
+++ b/app/models/discussion.rb
@@ -18,6 +18,7 @@ class Discussion
:for_merge_request?,
:to_ability_name,
:editable?,
+ :visible_for?,
to: :first_note