The UI service has used web app privileges
because it resides in Web Runtime browser thread.
This resolves following error:
>> TypeError: wrt_1.wrt.getPrivileges is not a function
Change-Id: I3258513a88b4ae34604ee41b57ac56828656b3ae
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
this.serviceId = ids[0];
this.callerAppId = ids[1] ?? '';
this.packageId = this.serviceId.split('.')[0];
- this.permissions = wrt.getPrivileges(this.id);
+ this.permissions = [];
this.initWebapis();
if (isGlobal) {
+ this.permissions = wrt.getPrivileges(this.id);
this.refineApplicationApis();
this.refinePackageApis();
this.refineFilesystemApis()