Commit 79f89d5e by Joe Blaylock

Fixing more tests?

parent 36b596e2
...@@ -170,10 +170,10 @@ def _has_access_course_desc(user, action, course): ...@@ -170,10 +170,10 @@ def _has_access_course_desc(user, action, course):
else: else:
reg_method_ok = True # if not using this access check, it's always OK. reg_method_ok = True # if not using this access check, it's always OK.
if reg_method_ok and within_enrollment_period(): #if reg_method_ok and within_enrollment_period():
# in enrollment period, so any user is allowed to enroll. # # in enrollment period, so any user is allowed to enroll.
debug("Allow: in enrollment period") # debug("Allow: in enrollment period")
return True # return True
now = datetime.now(UTC()) now = datetime.now(UTC())
start = course.enrollment_start or datetime.min.replace(tzinfo=pytz.UTC) start = course.enrollment_start or datetime.min.replace(tzinfo=pytz.UTC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment