Different universities will have different rules so it's hard to say.
I work at a university where the pattern is - first attempt > compensation rules applied > second attempt > compensation rules applied (where 'compensation' is the same thing as 'condoned' at your university) - but that doesn't mean that will apply for your university.
It should say in your handbook, or the university's academic regulations to do with progression.