extractorapp: Fix checkPermission for local layers