[Service] APIRouter - xwalk.util.checkPrivilegeAccess
xwalk.util.checkPrivilegeAccess() is an internal API of webapis
for checking the app has proper privilege.
If the app hasn't required privilege, it will throw exception.
For example, When 'tizen.filesystem.listStorages' is handled
xwalk.utils.checkPrivilegeAccess(
xwalk.utils.privilege.FILESYSTEM_READ);
it checks if the app has 'filesystem.read' privilege, then,
this overrided checkPrivilegeAccess() can inspect its privileges
defined in config.xml. (not wrt-service's privileges)
This is different from AccessControlManager's webapis drops.
In webapis, there are two ways of privilege checking.
1) by xwalk.util.checkPrivilegeAccess()
2) by cynara inspection directly
AccessControlManager purpose should be considered way #2.
webapis's cynara DB checking, it always inspects on wrt-service's.
Then, AccessControlManager should be able to disable webapis which
the app doesn't have required privileges.
Change-Id: I84ce85a580a483c209d354ca2f1b7c3d17c08fb3
Signed-off-by: DongHyun Song <dh81.song@samsung.com>