Cache allowed_ids
This commit is contained in:
parent
418947b6ce
commit
689658456f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue