gitlab-org--gitlab-foss/app/policies/project_statistics_policy.rb
Mayra Cabrera d7f10c2949 Do not blindly expose public project statistics
Add the missing check on GraphQL API for project statistics
2019-06-14 20:40:21 +00:00

5 lines
110 B
Ruby

# frozen_string_literal: true
class ProjectStatisticsPolicy < BasePolicy
delegate { @subject.project }
end