diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-03 15:02:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-03 15:02:37 +0300 |
commit | 70966bf1a7079852c7857d2868e14830b100a92d (patch) | |
tree | 194f657c3cadfc92906eeb0bbb1cad7d5df18e10 /app/graphql | |
parent | b1bbcf85684cee176ed5bb7eb43dd487a75f18fa (diff) |
Add latest changes from gitlab-org/security/gitlab@14-1-stable-ee
Diffstat (limited to 'app/graphql')
-rw-r--r-- | app/graphql/resolvers/project_pipeline_statistics_resolver.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/graphql/resolvers/project_pipeline_statistics_resolver.rb b/app/graphql/resolvers/project_pipeline_statistics_resolver.rb index 29ab9402f5b..79d01b9bf2e 100644 --- a/app/graphql/resolvers/project_pipeline_statistics_resolver.rb +++ b/app/graphql/resolvers/project_pipeline_statistics_resolver.rb @@ -2,8 +2,12 @@ module Resolvers class ProjectPipelineStatisticsResolver < BaseResolver + include Gitlab::Graphql::Authorize::AuthorizeResource type Types::Ci::AnalyticsType, null: true + authorizes_object! + authorize :read_ci_cd_analytics + def resolve weekly_stats = Gitlab::Ci::Charts::WeekChart.new(object) monthly_stats = Gitlab::Ci::Charts::MonthChart.new(object) |