From: Andrzej Popowski Date: Fri, 13 Feb 2015 13:35:20 +0000 (+0100) Subject: [Archive] - Account remove function fixed X-Git-Tag: submit/tizen_mobile/20150603.064609~1^2~445 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c1fc97825c27ae1fe6b484f17c18d766789d1f8;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Archive] - Account remove function fixed Change-Id: I03cc177ba9033b2ea208242870a621cee46f4071 Signed-off-by: Andrzej Popowski --- diff --git a/src/account/account_manager.cc b/src/account/account_manager.cc index 57454d3..b30356d 100644 --- a/src/account/account_manager.cc +++ b/src/account/account_manager.cc @@ -535,7 +535,7 @@ void AccountManager::RemoveAccount(const picojson::value& data, picojson::object int ret = account_delete_from_db_by_id(account_id); - if (!ret) { + if (!ret || ret == ACCOUNT_ERROR_INVALID_PARAMETER) { out["status"] = picojson::value("success"); } else { LoggerE("Failed to create account");