gitlab-org--gitlab-foss/app/policies/merge_request_policy.rb
2018-02-22 17:11:36 +01:00

3 lines
132 B
Ruby

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