[Service] Fix not returning handler id of systeminfo 20/244820/2
authorYoungsoo Choi <kenshin.choi@samsung.com>
Thu, 24 Sep 2020 11:48:29 +0000 (04:48 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Fri, 25 Sep 2020 02:06:13 +0000 (02:06 +0000)
The systeminfo device API should return handler id
to control listener later.

Change-Id: Idc12f8164be0a500a29b1a272899148e3c17aff7
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
wrt_app/service/access_control_manager.ts

index 120fe1c..87afb7a 100644 (file)
@@ -6,7 +6,7 @@ function checkSystemInfoApiPrivilege(func: any, permissions: string[]) {
       console.log('The telephony permission is missing.');
       return ;
     }
-    override_func.call(global.tizen.systeminfo, ...args);
+    return override_func.call(global.tizen.systeminfo, ...args);
   }
 }