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

4 lines
132 B
Ruby
Raw Normal View History

2016-09-29 09:46:39 +05:30
class MergeRequestPolicy < IssuablePolicy
2018-03-27 19:54:05 +05:30
rule { can?(:read_merge_request) | visible_to_user }.enable :read_merge_request_iid
2016-09-29 09:46:39 +05:30
end