debian-mirror-gitlab/app/policies/blob_policy.rb
2023-01-13 15:02:22 +05:30

7 lines
144 B
Ruby

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