diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
commit | 419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch) | |
tree | 1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /app/policies/project_policy.rb | |
parent | 1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff) |
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'app/policies/project_policy.rb')
-rw-r--r-- | app/policies/project_policy.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index a57b6f8daf7..20f88577d67 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -642,7 +642,6 @@ class ProjectPolicy < BasePolicy prevent(*create_read_update_admin_destroy(:build)) prevent(*create_read_update_admin_destroy(:pipeline_schedule)) prevent(*create_read_update_admin_destroy(:environment)) - prevent(*create_read_update_admin_destroy(:cluster)) prevent(*create_read_update_admin_destroy(:deployment)) end @@ -666,6 +665,7 @@ class ProjectPolicy < BasePolicy prevent :read_pipeline_schedule prevent(*create_read_update_admin_destroy(:feature_flag)) prevent(:admin_feature_flags_user_lists) + prevent(*create_read_update_admin_destroy(:cluster)) end rule { container_registry_disabled }.policy do @@ -695,7 +695,6 @@ class ProjectPolicy < BasePolicy enable :read_merge_request enable :read_note enable :read_pipeline - enable :read_pipeline_schedule enable :read_environment enable :read_deployment enable :read_commit_status @@ -712,7 +711,10 @@ class ProjectPolicy < BasePolicy enable :read_issue end - rule { can?(:public_access) & public_builds }.enable :read_ci_cd_analytics + rule { can?(:public_access) & public_builds }.policy do + enable :read_ci_cd_analytics + enable :read_pipeline_schedule + end rule { public_builds }.policy do enable :read_build |