ce61c8b7d0
The daka query branching checked teacher_id first. When a student has currentTeacherId set, both params are present, causing the teacher branch to activate (requires scope) and fail with "scope can not be none". Fixed by adding student_id.is_none() to the teacher branch condition. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>