gitlab-org--gitlab-foss/app/policies/blob_policy.rb

8 lines
148 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class BlobPolicy < BasePolicy
delegate { @subject.project }
rule { can?(:download_code) }.enable :read_blob
end