X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fpkgmgr-server.c;h=d69728fe150e9742b3d7e5f7441b6e7c7be46dbf;hb=dd07794772edf219adfc9e673adcf2a8b80fe76a;hp=d390f90da83300ce01c5dd1b98bd37ba61b90c23;hpb=882d44fdc021c34c7f38e66ac2f9c311cf285128;p=platform%2Fcore%2Fappfw%2Fpkgmgr-server.git diff --git a/src/pkgmgr-server.c b/src/pkgmgr-server.c index d390f90..d69728f 100644 --- a/src/pkgmgr-server.c +++ b/src/pkgmgr-server.c @@ -661,14 +661,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;