diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-28 22:29:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-28 22:29:09 +0300 |
commit | 78a4412d00e57068b9e375ea138e837771620fa0 (patch) | |
tree | 5d9a1c1d8a31ba20691fb94efb05c66bfb0d5721 /app | |
parent | f9ebf09112cb8df46f1c54b4ed6fdd8c33ea71ef (diff) |
Add latest changes from gitlab-org/security/gitlab@16-1-stable-ee
Diffstat (limited to 'app')
-rw-r--r-- | app/policies/project_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index cdb7c3eca46..c70dc288710 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -670,7 +670,7 @@ class ProjectPolicy < BasePolicy enable :read_project_for_iids end - rule { ~project_allowed_for_job_token }.prevent_all + rule { ~public_project & ~internal_access & ~project_allowed_for_job_token }.prevent_all rule { can?(:public_access) }.policy do enable :read_package |