gitlab-org--gitlab-foss/app/controllers/import/available_namespaces_contro...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
317 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Import::AvailableNamespacesController < ApplicationController
feature_category :importers
urgency :low
def index
render json: NamespaceSerializer.new.represent(current_user.manageable_groups_with_routes(include_groups_with_developer_maintainer_access: true))
end
end