Commit 227cc58d by Victor Shnayder

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).
parent 13c8cbf5
......@@ -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():
"""
......
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