From 227cc58d30e46edb15e954590a0c23c62a7451c2 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Tue, 2 Oct 2012 18:59:04 -0400 Subject: [PATCH] fix a bug: can_load() should check for the 'load' permission. - triggered by anon users when all courses have started (or start dates are off). --- lms/djangoapps/courseware/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/access.py b/lms/djangoapps/courseware/access.py index 2612efedb9..00b4c763b3 100644 --- a/lms/djangoapps/courseware/access.py +++ b/lms/djangoapps/courseware/access.py @@ -106,7 +106,7 @@ def _has_access_course_desc(user, course, action): NOTE: this is not checking whether user is actually enrolled in the course. """ # delegate to generic descriptor check to check start dates - return _has_access_descriptor(user, course, action) + return _has_access_descriptor(user, course, 'load') def can_enroll(): """