If a teacher is not part of a school and attempts to save a created level, they get the following error and the level is not saved:
As evidenced by the GCP logs, this might be due to an inaccurate check in level_editor.py's save_level_for_editor which is meant to check whether the user is in a school or not but actually just checks whether the user is an independent or not:
To fix the bug, this if check will probably have to be changed.
Steps to reproduce the bug:
Log in as a teacher with no school
Go straight to the Rapid Router Level Editor without adding a school
If a teacher is not part of a school and attempts to save a created level, they get the following error and the level is not saved:
As evidenced by the GCP logs, this might be due to an inaccurate check in
level_editor.py
'ssave_level_for_editor
which is meant to check whether the user is in a school or not but actually just checks whether the user is an independent or not:To fix the bug, this
if
check will probably have to be changed.Steps to reproduce the bug: