debian-mirror-gitlab/app/policies/blob_policy.rb
2023-01-12 18:35:48 +00:00

7 lines
144 B
Ruby

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