summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-03 12:03:36 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-03 12:03:36 +0000
commit8f55c567e2da284ea78fabe1994f234bbd7b6023 (patch)
tree84b709cc9bf53778af3a0e8a40b467fadd91ac2b /app/policies
parentacd33ab4ff107fc73b9dd310ba65e60bd3119c0b (diff)
downloadgitlab-ce-8f55c567e2da284ea78fabe1994f234bbd7b6023.tar.gz
Add latest changes from gitlab-org/security/gitlab@14-0-stable-ee
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/project_policy.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb
index 184ed44146f..a9446810e81 100644
--- a/app/policies/project_policy.rb
+++ b/app/policies/project_policy.rb
@@ -283,6 +283,7 @@ class ProjectPolicy < BasePolicy
enable :read_confidential_issues
enable :read_package
enable :read_product_analytics
+ enable :read_ci_cd_analytics
end
# We define `:public_user_access` separately because there are cases in gitlab-ee
@@ -479,6 +480,7 @@ class ProjectPolicy < BasePolicy
prevent(:read_insights)
prevent(:read_cycle_analytics)
prevent(:read_repository_graphs)
+ prevent(:read_ci_cd_analytics)
end
rule { wiki_disabled }.policy do
@@ -554,6 +556,7 @@ class ProjectPolicy < BasePolicy
enable :read_cycle_analytics
enable :read_pages_content
enable :read_analytics
+ enable :read_ci_cd_analytics
enable :read_insights
# NOTE: may be overridden by IssuePolicy