diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-19 00:09:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-19 00:09:00 +0300 |
commit | 7d46e0437fb6e41b1a597ed159a4c1f2b0beca7b (patch) | |
tree | 76fb66c4b5dfa1a84995750a0b0bfc3e43065a87 /app/policies/note_policy.rb | |
parent | c8deb6a80194f536584bbb6c97d92bff7116c548 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/note_policy.rb')
-rw-r--r-- | app/policies/note_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/note_policy.rb b/app/policies/note_policy.rb index 38f0f165376..d9ea7c38f11 100644 --- a/app/policies/note_policy.rb +++ b/app/policies/note_policy.rb @@ -76,7 +76,7 @@ class NotePolicy < BasePolicy def parent_namespace strong_memoize(:parent_namespace) do next if @subject.is_a?(PersonalSnippet) - next @subject.noteable.group if @subject.noteable&.is_a?(Epic) + next @subject.noteable.group if @subject.noteable.is_a?(Epic) @subject.project end |