#4237 type() instead of permissionType()