debian-mirror-gitlab/app/policies/blob_policy.rb
2020-01-01 13:55:28 +05:30

7 lines
148 B
Ruby

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