commit_policy.rb 152 Bytes
Newer Older
Peter Leitzen's avatar
Peter Leitzen committed
1 2
# frozen_string_literal: true

3 4
class CommitPolicy < BasePolicy
  delegate { @subject.project }
5 6

  rule { can?(:download_code) }.enable :read_commit
7
end