diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-15 06:10:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-15 06:10:54 +0300 |
commit | 5c599896773669c8671fd14f79b96d9cd50ccab8 (patch) | |
tree | 068ea44f71a34d897e47a0c834236d58ab028a67 /app/models/ability.rb | |
parent | 03bea06527fd8cc8eb65af0b20b6019fc74721d9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r-- | app/models/ability.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb index b15143c8c9c..eb645bcd653 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -29,7 +29,7 @@ class Ability # A list of users that can read confidential notes in a project def users_that_can_read_internal_notes(users, note_parent) DeclarativePolicy.subject_scope do - users.select { |u| allowed?(u, :reporter_access, note_parent) } + users.select { |u| allowed?(u, :read_internal_note, note_parent) } end end |