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