anchor.diff:              done
       end.
   
  -handle_pool_info_wait_tail(Req, Id, UserPassword, LocalAddr, ETag) ->
  +handle_pool_info_wait_tail(Req, Id, LocalAddr, ETag) ->
       menelaus_event:unregister_watcher(self()),
       %% consume all notifications
       consume_notifications(),
       %% and reply
  -    {struct, PList} = build_pool_info(Id, UserPassword, for_ui, LocalAddr),
  +    {struct, PList} = build_pool_info(Id, menelaus_auth:is_under_admin(Req),
  +                                      for_ui, LocalAddr),
       Info = {struct, [{etag, list_to_binary(ETag)} | PList]},
       reply_json(Req, Info),
       %% this will cause some extra latency on ui perhaps,
  
positive.code:     exit(normal).
  
  
  build_pool_info(Id, UserPassword, InfoLevel, LocalAddr) ->
      UUID = get_uuid(),
  
      F = build_nodes_info_fun(menelaus_auth:check_auth(UserPassword), InfoLevel, LocalAddr),
      Nodes = [F(N, undefined) || N <- ns_node_disco:nodes_wanted()],
      Config = ns_config:get(),
      BucketsVer = erlang:phash2(ns_bucket:get_bucket_names(Config))
  
negative.code:     end.
  
  handle_pool_info_streaming(Id, Req) ->
      LocalAddr = menelaus_util:local_addr(Req),
      F = fun(InfoLevel) ->
                  build_pool_info(Id, menelaus_auth:is_under_admin(Req),
                                  InfoLevel, LocalAddr)
          end,
      handle_streaming(F, Req, undefined).
  
  handle_streaming(F, Req, LastRes) ->
  