Describe the bug
If a user is an instructor in a lecture and a student in another one, the other one is available in "Course Management". The student can even see the assignment settings, even though they cannot change anything (an attempt to do so usually results in a "403 - Forbidden" response, but occasionally it's an unhandled exception).
To Reproduce
Steps to reproduce the behavior:
- Create a user that has an instructor role in one lecture and a student role in another one.
- Go to "Course Management"
- You can see both lectures there. If you click on any lecture, you can see its settings etc.
Expected behavior
Lectures in which the user is a student should not be visible in the Course Management.
Screenshots
The user has a student role in "lecture2":

On an attempt to change the lecture's settings:
