From 1177e23a32736ff1bd302475778eb663ddd760fa Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Wed, 21 Dec 2016 15:37:25 +0900 Subject: [PATCH] Enable disable/enable function of global apps - For now, disable/enabling of global apps are prohibited. Remove some codes to enable it Change-Id: I2dd4c7873ce3432e0c3e10c5df18a1cab96a1d6e Signed-off-by: Junghyun Yeon --- src/pkgmgr-server.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/pkgmgr-server.c b/src/pkgmgr-server.c index c3d33d1..098b65c 100644 --- a/src/pkgmgr-server.c +++ b/src/pkgmgr-server.c @@ -588,14 +588,9 @@ static int __change_job_info(struct backend_job *job, uid_t uid, if (ret != PMINFO_R_OK) goto catch; - if ((job->req_type == REQUEST_TYPE_DISABLE_APP || - job->req_type == REQUEST_TYPE_ENABLE_APP) && - *is_global) { - ret = PMINFO_R_ERROR; - goto catch; - } else if ((job->req_type == REQUEST_TYPE_DISABLE_GLOBAL_APP_FOR_UID || - job->req_type == - REQUEST_TYPE_ENABLE_GLOBAL_APP_FOR_UID) && + if ((job->req_type == REQUEST_TYPE_DISABLE_GLOBAL_APP_FOR_UID || + job->req_type == + REQUEST_TYPE_ENABLE_GLOBAL_APP_FOR_UID) && !*is_global) { ret = PMINFO_R_ERROR; goto catch; -- 2.7.4