debian-mirror-gitlab/app/policies/commit_policy.rb
2018-11-29 20:51:05 +05:30

7 lines
152 B
Ruby

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