anchor.diff:          auth = Auth,
           identity = #user_identity{user_id = UserId}
       }}} = session:get(SessId),
  -%%    {ok, User} = od_user:get_or_fetch(Auth, UserId), %todo enable after fixing race
  -    #user_ctx{session = Session}.
  +    {ok, User} = od_user:get_or_fetch(Auth, UserId),
  +    #user_ctx{
  +        session = Session,
  +        user_doc = User
  +    }.
   
   %%--------------------------------------------------------------------
   %% @doc
  
positive.code: %% @end
  %%--------------------------------------------------------------------
  -spec get_user(ctx()) -> od_user:doc().
  get_user(UserCtx) ->
      Auth = get_auth(UserCtx),
      UserId = get_user_id(UserCtx),
      {ok, User} = od_user:get_or_fetch(Auth, UserId), %todo remove after fixing race
      User.
  
  %%--------------------------------------------------------------------
  
negative.code: %% Context definition
  -record(user_ctx, {
      session :: session:doc(),
      user_doc :: od_user:doc()
  }).
  
  -type ctx() :: #user_ctx{}.
  