From: Junghyun Yeon Date: Wed, 21 Dec 2016 06:37:25 +0000 (+0900) Subject: Enable disable/enable function of global apps X-Git-Tag: accepted/tizen/3.0/common/20161227.101249^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1177e23a32736ff1bd302475778eb663ddd760fa;p=platform%2Fcore%2Fappfw%2Fpkgmgr-server.git 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 --- 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;