Enable disable/enable function of global apps 57/106257/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 21 Dec 2016 06:37:25 +0000 (15:37 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 21 Dec 2016 06:37:25 +0000 (15:37 +0900)
- For now, disable/enabling of global apps are prohibited.
  Remove some codes to enable it

Change-Id: I2dd4c7873ce3432e0c3e10c5df18a1cab96a1d6e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
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;