From ec377e41624fb83f0e5e51286c7aad24a22eefb1 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 11 Feb 2022 15:14:00 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/policies/note_policy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/policies') diff --git a/app/policies/note_policy.rb b/app/policies/note_policy.rb index d9ea7c38f11..e85f18f2d37 100644 --- a/app/policies/note_policy.rb +++ b/app/policies/note_policy.rb @@ -16,7 +16,7 @@ class NotePolicy < BasePolicy condition(:for_design) { @subject.for_design? } - condition(:is_visible) { @subject.system_note_with_references_visible_for?(@user) } + condition(:is_visible) { @subject.system_note_visible_for?(@user) } condition(:confidential, scope: :subject) { @subject.confidential? } -- cgit v1.2.1