Commit 5bfd9eb0 by Bill Filler

cleanup

parent 41d86992
...@@ -261,7 +261,7 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule): ...@@ -261,7 +261,7 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
'hidden_content.html', 'hidden_content.html',
{ {
'self_paced': course.self_paced, 'self_paced': course.self_paced,
'progress_url': context.get('progress_url') 'progress_url': context.get('progress_url'),
} }
) )
...@@ -300,7 +300,7 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule): ...@@ -300,7 +300,7 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
hidden_date = course.end if course.self_paced else self.due hidden_date = course.end if course.self_paced else self.due
return ( return (
self.runtime.user_is_staff or self.runtime.user_is_staff or
self.verify_current_content_visibility(hidden_date, self.hide_after_due) self.verify_current_content_visibility(hidden_date, self.hide_after_due)
) )
def is_user_authenticated(self, context): def is_user_authenticated(self, context):
......
...@@ -493,7 +493,6 @@ def _has_access_descriptor(user, action, descriptor, course_key=None): ...@@ -493,7 +493,6 @@ def _has_access_descriptor(user, action, descriptor, course_key=None):
return ( return (
_visible_to_nonstaff_users(descriptor) and _visible_to_nonstaff_users(descriptor) and
# _can_access_descriptor_with_milestones(user, descriptor, course_key) and
( (
_has_detached_class_tag(descriptor) or _has_detached_class_tag(descriptor) or
check_start_date(user, descriptor.days_early_for_beta, descriptor.start, course_key) check_start_date(user, descriptor.days_early_for_beta, descriptor.start, course_key)
......
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