anchor.diff:          end,
   
       {JsonFromSkews, Links} = json_from_skews(PageSkews, PageSize, UserJson),
  -
  -    Json = {[{total, Total} | [build_links(Links, PageSize, DomainAtom, Path) | JsonFromSkews]]},
  +    LinksJson = build_links(Links, PageSize, DomainAtom, Path, Permission),
  +    Json = {[{total, Total}, LinksJson | JsonFromSkews]},
       menelaus_util:reply_ok(Req, "application/json", misc:ejson_encode_pretty(Json)).
   
   handle_whoami(Req) ->
  
positive.code: add_to_skews(El, Skews) ->
      [add_to_skew(El, Skew) || Skew <- Skews].
  
  build_link(Name, noparams, PageSize, _DomainAtom, Path) ->
      {Name, iolist_to_binary(
               io_lib:format("/~s?pageSize=~p", [Path, PageSize]))};
  build_link(Name, {User, Domain}, PageSize, '_', Path) ->
      {Name, iolist_to_binary(
               io_lib:format("/~s?startFrom=~s&startFromDomain=~p&pageSize=~p",
                             [Path, User, Domain, PageSize]))};
  build_link(Name, {User, _Domain}, PageSize, _DomainAtom, Path) ->
      {Name, iolist_to_binary(
               io_lib:format("/~s?startFrom=~s&pageSize=~p", [Path, User, PageSize]))}.
  
  seed_links(Pairs) ->
      [{Name, {http_uri:encode(User), Domain}} || {Name, {User, Domain}} <- Pairs].
  
  build_links(Links, PageSize, DomainAtom, Path) ->
      {links, {[build_link(Name, Identity, PageSize, DomainAtom, Path) || {Name, Identity} <- Links]}}.
  
  json_from_skews([SkewPrev, SkewThis, SkewLast], PageSize, UserJson) ->
      {Users, Next} =
  
negative.code:                       handle_get_users_page(Req, DomainAtom, Path,
                                              proplists:get_value(pageSize,
                                                                  Values),
                                              Start, Permission, FilteredRoles)
                end, Req, validate_get_users(Query, DomainAtom, HasStartFrom))
      end.
  
  