Made the permissionDeniedFormats lookups recursive.