diff --git a/src/Utils/Course.hs b/src/Utils/Course.hs index 79ed0d6c8..19726c54e 100644 --- a/src/Utils/Course.hs +++ b/src/Utils/Course.hs @@ -137,7 +137,7 @@ courseAllocationRegistrationOpen now cid maid = E.exists . E.from $ \(allocation E.on $ allocationCourse E.^. AllocationCourseAllocation E.==. allocation E.^. AllocationId E.where_ $ allocationCourse E.^. AllocationCourseCourse E.==. cid E.&&. E.maybe - (E.val False) + E.true (\registerFrom -> registerFrom E.<=. E.val now) (allocation E.^. AllocationRegisterFrom) E.&&. E.maybe