gitlab-org--gitlab-foss/app/policies/merge_request_policy.rb

4 lines
132 B
Ruby
Raw Normal View History

2016-08-16 14:32:08 -04:00
class MergeRequestPolicy < IssuablePolicy
rule { can?(:read_merge_request) | visible_to_user }.enable :read_merge_request_iid
2016-08-16 14:32:08 -04:00
end