I'm currently studying for a computer science Masters degree in a top UK university and I wish to pursue a career in academia by getting a Ph.D. degree. I got perfect coursework grades, however, I didn't do well in my exams which count for 90% of the total grade in every course. Unfortunately, I'm 90% confirmed that I'll fail one of the courses and even if I resit it I'll only graduate with an overall pass due to the department's regulations related to failed courses. My current thesis supervisor, who also supervised my research course last semester, is very pleased with my work and offered me a Ph.D. position in a newly funded project. However the department's regulations admit only distinction holders, especially students graduating from the same department.
Is there any chance of me being admitted or is it impossible for a "pass" Master holder to continue their studies?