archetecture security fix

This commit is contained in:
root
2026-06-11 03:22:12 -04:00
parent 6def9993da
commit 9483750161
3126 changed files with 177194 additions and 37211 deletions
@@ -143,13 +143,18 @@ class TeacherSubmissionNotificationService
return [];
}
return ClassSection::query()
$query = ClassSection::query()
->select('teacher_class.class_section_id', 'teacher_class.teacher_id')
->join('teacher_class', 'teacher_class.class_section_id', '=', 'classSection.class_section_id')
->whereIn('teacher_class.teacher_id', $teacherIds)
->where('teacher_class.school_year', $schoolYear)
->where('teacher_class.semester', $semester)
->orderBy('teacher_class.class_section_id')
->orderBy('teacher_class.class_section_id');
if ($this->shared->teacherClassSupportsSemester() && $semester !== '') {
$query->where('teacher_class.semester', $semester);
}
return $query
->get()
->map(static fn ($row): array => [
'class_section_id' => (int) $row->class_section_id,