fix for internal UTC 40/88840/1
authorIckhee Woo <ickhee.woo@samsung.com>
Wed, 21 Sep 2016 02:07:36 +0000 (11:07 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Wed, 21 Sep 2016 02:07:36 +0000 (11:07 +0900)
Change-Id: Ic89d293722935bc7615a6b415bf130e2718d5e40
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
src/account_offline.c

index a58b542e70bc57bf9c70c41d24e720f6ef069104..ad92f8b3ac26d325fe0e58889293b1d878b83fe8 100644 (file)
@@ -393,7 +393,7 @@ ACCOUNT_INTERNAL_API int account_delete_from_db_by_package_name_offline(const ch
                return ACCOUNT_ERROR_DB_NOT_OPENED;
        }
 
-       if (uid != 0) {
+       if (uid != OWNER_ROOT || uid != GLOBAL_USER) {
                _ERR("current process user is not root, uid=%d", uid);
                return_code = ACCOUNT_ERROR_PERMISSION_DENIED;
                goto RETURN;