def cluster_enable(params, request, session)
  if params[:name]
    code, response = send_request_with_token(
      session, params[:name], 'cluster_enable', true
    )
  else
    if not allowed_for_local_cluster(session, Permissions::WRITE)
      return 403, 'Permission denied'
    end
    success = enable_cluster(session)
    if not success
      return JSON.generate({"error" => "true"})
    end
    return "Cluster Enabled"
  end
end
Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.