ls1intum / Artemis

Artemis - Interactive Learning with Automated Feedback
https://docs.artemis.cit.tum.de
MIT License
452 stars 275 forks source link

`Exam mode`: Exam checklist student registration validation fails if instructor is registered as student #8894

Open florian-glombik opened 3 days ago

florian-glombik commented 3 days ago

Describe the bug

Instructors can not participate in an exam and can't be registered for the exam (no bug!) - but if accidentally an instructor (this probably also happens for tutors / editors) is registered as student in a course the exam check for registering the students will not succeed.

To Reproduce

  1. Create a course, register at least 1 student and at least 1 instructor as student aswell
  2. Create an exam and register students, use the Register Course Students button to register the students
  3. Go to the exam checklist and see that the check for student registration is not successful
  4. See that if you remove the instructor from the students of the course the check will pass

Expected behavior

The checklist should give more information about the reason for failing.

  1. It should display that x/y students have been registered
  2. It should display if instructors / editors / students accidentally also have the student role and can therefore not be registered

Screenshots

No response

Which version of Artemis are you seeing the problem on?

7.3.1

What browsers are you seeing the problem on?

Chrome