diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-04 18:12:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-04 18:12:07 +0300 |
commit | a155ff5671d06afd4c219a49b6c9fd673af69876 (patch) | |
tree | ea9f3422fcfe751f954561ff579569ba9a742eb3 /app/models/ci | |
parent | 157061839634d24bdb937316373f35bf1fb1f71e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/catalog/listing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/catalog/listing.rb b/app/models/ci/catalog/listing.rb index 3b1edac7b62..9baf5e7b2cc 100644 --- a/app/models/ci/catalog/listing.rb +++ b/app/models/ci/catalog/listing.rb @@ -35,7 +35,7 @@ module Ci return unless resource.present? return unless resource.published? - return unless current_user.can?(:read_code, resource.project) + return unless Ability.allowed?(current_user, :read_code, resource.project) resource end |