refactor most places that used redirect_if_not_admin_or_teacher now just use is_admin_or_teacher and redirect in its own method if the user is not authorized