version up && fix inserting multiple account. 41/55541/1 accepted/tizen/ivi/20160218.022922 accepted/tizen/mobile/20151224.102852 accepted/tizen/tv/20151224.102927 accepted/tizen/wearable/20160222.083013 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001 submit/tizen_mobile/20151224.095831 submit/tizen_tv/20151224.095838 submit/tizen_wearable/20160222.061736
authorjiseob.jang <jiseob.jang@samsung.com>
Thu, 24 Dec 2015 09:34:04 +0000 (18:34 +0900)
committerjiseob.jang <jiseob.jang@samsung.com>
Thu, 24 Dec 2015 09:34:04 +0000 (18:34 +0900)
Change-Id: Ia22d3487f36558f997a4e64bdc8d7ded1445b0d9
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
packaging/account-manager.spec
server/src/account-server-db.c

index aea16b0..ee43ba6 100644 (file)
@@ -1,7 +1,7 @@
 
 Name:       account-manager
 Summary:    Account Manager
-Version:    0.1.2
+Version:    0.1.3
 Release:    1
 Group:      Social & Content/Other
 License:    Apache-2.0
index d2c3442..9ee589b 100644 (file)
@@ -306,8 +306,8 @@ static bool _account_check_add_more_account(const char* app_id)
        ACCOUNT_SNPRINTF(query, sizeof(query), "SELECT COUNT(*) FROM %s WHERE AppId = '%s' and MultipleAccountSupport = 1", ACCOUNT_TYPE_TABLE, app_id);
        rc = _account_get_record_count(g_hAccountDB, query);
 
-       /* multiple account support case */
-       if(rc > 0) {
+       /* multiple account support case (User DB & global DB) */
+       if(rc > 0 || _account_get_record_count(g_hAccountGlobalDB, query) > 0) {
                ACCOUNT_SLOGD("app id (%s) supports multiple account. rc(%d)\n", app_id, rc);
                return TRUE;
        }