debian-mirror-gitlab/app/controllers/import/available_namespaces_controller.rb
2021-10-27 15:23:28 +05:30

9 lines
302 B
Ruby

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