Commit da7d73e7 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Add cr remarks

parent 0db11607
......@@ -103,11 +103,11 @@ class Projects::ForksController < Projects::ApplicationController
end
def load_namespaces_with_associations
fork_service.valid_fork_targets(only_groups: true).preload(:route)
@load_namespaces_with_associations ||= fork_service.valid_fork_targets(only_groups: true).preload(:route)
end
def memberships_hash
current_user.members.index_by(&:source_id)
current_user.members.where(source: load_namespaces_with_associations).index_by(&:source_id)
end
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