debian-mirror-gitlab/app/policies/merge_request_policy.rb
2018-03-27 19:54:05 +05:30

3 lines
132 B
Ruby

class MergeRequestPolicy < IssuablePolicy
rule { can?(:read_merge_request) | visible_to_user }.enable :read_merge_request_iid
end