Delete privilege checking routine 00/63100/3 accepted/tizen/common/20160323.184347 accepted/tizen/common/20160324.084236 accepted/tizen/ivi/20160324.131642 accepted/tizen/mobile/20160324.132921 accepted/tizen/tv/20160324.132741 accepted/tizen/wearable/20160324.132706 submit/tizen/20160323.020400 submit/tizen/20160323.235918
authorMyungki Lee <mk5004.lee@samsung.com>
Tue, 22 Mar 2016 06:03:50 +0000 (15:03 +0900)
committerMyungKi Lee <mk5004.lee@samsung.com>
Wed, 23 Mar 2016 00:49:49 +0000 (17:49 -0700)
Change-Id: I86c6a4046fb4e78d193825dafb77b23145b1625e
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/app_context.c

index 695a683..7d6878e 100644 (file)
@@ -529,19 +529,9 @@ static int app_context_terminated_event_cb(pid_t pid, void *data)
 
 int app_context_set_event_cb(app_manager_app_context_event_cb callback, void *user_data)
 {
-       int ret;
-
        if (callback == NULL)
                return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
 
-       ret = app_manager_check_privilege(PRIVILEGE_PKGMGR_INFO);
-       if (ret != APP_MANAGER_ERROR_NONE) {
-               if (ret == APP_MANAGER_ERROR_PERMISSION_DENIED)
-                       return app_manager_error(APP_MANAGER_ERROR_PERMISSION_DENIED, __FUNCTION__, NULL);
-               else
-                       return app_manager_error(APP_MANAGER_ERROR_IO_ERROR, __FUNCTION__, NULL);
-       }
-
        app_context_lock_event_cb_context();
 
        if (event_cb_context == NULL) {