diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
commit | 5afcbe03ead9ada87621888a31a62652b10a7e4f (patch) | |
tree | 9918b67a0d0f0bafa6542e839a8be37adf73102d /app/policies/project_policy.rb | |
parent | c97c0201564848c1f53226fe19d71fdcc472f7d0 (diff) |
Add latest changes from gitlab-org/gitlab@16-4-stable-eev16.4.0-rc42
Diffstat (limited to 'app/policies/project_policy.rb')
-rw-r--r-- | app/policies/project_policy.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 25495bb0221..38e6360f81d 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -862,7 +862,11 @@ class ProjectPolicy < BasePolicy enable :set_pipeline_variables end - rule { ~security_and_compliance_disabled & can?(:developer_access) }.policy do + rule { security_and_compliance_disabled }.policy do + prevent :access_security_and_compliance + end + + rule { can?(:developer_access) }.policy do enable :access_security_and_compliance end |