fix registration issue and split parent controller into services
This commit is contained in:
@@ -492,18 +492,6 @@ class StudentModel extends Model
|
||||
(
|
||||
student_class.student_id IS NOT NULL
|
||||
OR enrollments.student_id IS NOT NULL
|
||||
OR (
|
||||
NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM student_class sc_history
|
||||
WHERE sc_history.student_id = students.id
|
||||
)
|
||||
AND NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM enrollments e_history
|
||||
WHERE e_history.student_id = students.id
|
||||
)
|
||||
)
|
||||
)
|
||||
";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user