Commit 68965845 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Cache allowed_ids

parent 418947b6
......@@ -56,7 +56,7 @@ module Gitlab
end
def allowed_ids
allowed_ids_finder_class
@allowed_ids ||= allowed_ids_finder_class
.new(@options[:current_user], project_id: @project.id)
.execute.where(id: event_result_ids).pluck(:id)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment