Merge "Enable disable/enable function of global apps" into tizen_3.0 accepted/tizen/3.0/common/20161227.101249 accepted/tizen/3.0/ivi/20161222.024831 accepted/tizen/3.0/mobile/20161222.024714 accepted/tizen/3.0/tv/20161222.024739 accepted/tizen/3.0/wearable/20161222.024806 submit/tizen_3.0/20161221.130430
authorjongmyeong ko <jongmyeong.ko@samsung.com>
Wed, 21 Dec 2016 12:12:07 +0000 (04:12 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 21 Dec 2016 12:12:07 +0000 (04:12 -0800)
src/pkgmgr-server.c

index d390f90..d69728f 100644 (file)
@@ -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;