Enable disable/enable function of global apps
[platform/core/appfw/pkgmgr-server.git] / src / pkgmgr-server.c
index c3d33d1..098b65c 100644 (file)
@@ -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;