debian-mirror-gitlab/app/policies/commit_policy.rb

8 lines
152 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
class CommitPolicy < BasePolicy
delegate { @subject.project }
2018-11-29 20:51:05 +05:30
rule { can?(:download_code) }.enable :read_commit
2018-11-20 20:47:30 +05:30
end