Cache allowed_ids
This commit is contained in:
parent
418947b6ce
commit
689658456f
|
|
@ -56,7 +56,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def allowed_ids
|
def allowed_ids
|
||||||
allowed_ids_finder_class
|
@allowed_ids ||= allowed_ids_finder_class
|
||||||
.new(@options[:current_user], project_id: @project.id)
|
.new(@options[:current_user], project_id: @project.id)
|
||||||
.execute.where(id: event_result_ids).pluck(:id)
|
.execute.where(id: event_result_ids).pluck(:id)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue