diff options
author | Alexandru Croitor <acroitor@gitlab.com> | 2019-09-18 11:26:20 +0300 |
---|---|---|
committer | Yorick Peterse <yorick@yorickpeterse.com> | 2019-09-30 14:22:05 +0200 |
commit | c99402c05f18c6ca8dd7b64c59527abe1e6e80d4 (patch) | |
tree | 486679c27fb41fdf9d729b7277b98237841590ab /app/models/discussion.rb | |
parent | e5fdd91318c590753cf0f920a2cf9b1a530e96f8 (diff) | |
download | gitlab-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.rb | 1 |
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 |