Commit ef629f23 by David Ormsbee

Merge pull request #808 from MITx/bugfix/victor/fix-anon-user-access-check

fix a bug: can_load() should check for the 'load' permission.
parents e27c0c9b 65f027a5
......@@ -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