anchor.diff:          case couch_util:get_value(<<"deleted">>, Doc, false) of
           false ->
               UserDb = ensure_user_db(User),
  -            ensure_security(User, UserDb, fun add_user/3),
  +            ok = ensure_security(User, UserDb, fun add_user/3),
               State;
           true ->
               case State#state.delete_dbs of
  
positive.code:                 _UserDb = delete_user_db(User),
                  State;
              false ->
                  ensure_security(User, user_db_name(User), fun remove_user/3),
                  State
              end
          end;
  
negative.code:     {false, _} ->
          ok;
      {true, SecProps1} ->
          ok = fabric:set_security(UserDb, {SecProps1}, [?ADMIN_CTX])
      end.
  
  user_db_name(User) ->
  