diff options
Diffstat (limited to 'lib/gitlab/cycle_analytics/merge_request_allowed.rb')
-rw-r--r-- | lib/gitlab/cycle_analytics/merge_request_allowed.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/cycle_analytics/merge_request_allowed.rb b/lib/gitlab/cycle_analytics/merge_request_allowed.rb new file mode 100644 index 00000000000..28f6db44759 --- /dev/null +++ b/lib/gitlab/cycle_analytics/merge_request_allowed.rb @@ -0,0 +1,9 @@ +module Gitlab + module CycleAnalytics + module MergeRequestAllowed + def allowed_ids + @allowed_ids ||= MergeRequestsFinder.new(@options[:current_user], project_id: @project.id).execute.where(id: event_result_ids).pluck(:id) + end + end + end +end |