Describe the bug
If a student who has created a custom levels is released by a teacher, their custom level remains shared with the teacher. Since the student no longer belongs to the school, this causes the teacher to see the error page instead of the levels page.
To Reproduce
Steps to reproduce the behaviour:
Prerequisites: Have a teacher account with a student who has created a custom level. Confirm the teacher can see the level in the shared levels.
Release the student.
Go back to the levels page.
Notice that the page fails to load.
Expected behaviour
When a student is released, it should also "unshare" all of their custom levels, as their are no longer in the school.
Describe the bug If a student who has created a custom levels is released by a teacher, their custom level remains shared with the teacher. Since the student no longer belongs to the school, this causes the teacher to see the error page instead of the levels page.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour When a student is released, it should also "unshare" all of their custom levels, as their are no longer in the school.