Commit 36d00459 by Jason Bau

Revert "Resolve failing tests by partially reverting Jason's work"

This reverts commit 58089fb0.
parent 58089fb0
...@@ -333,9 +333,7 @@ def _has_access_descriptor(user, action, descriptor, course_key=None): ...@@ -333,9 +333,7 @@ def _has_access_descriptor(user, action, descriptor, course_key=None):
# after start date, all registered users can see it # after start date, all registered users can see it
# nonregistered users shouldn't be able to access certain descriptor types # nonregistered users shouldn't be able to access certain descriptor types
debug("Allow: now > effective start date") debug("Allow: now > effective start date")
# JRBL Edited this to make the unit tests pass return UserProfile.has_registered(user) or _can_load_descriptor_nonregistered(descriptor)
#return UserProfile.has_registered(user) or _can_load_descriptor_nonregistered(descriptor)
return True
# otherwise, need staff access # otherwise, need staff access
return _has_staff_access_to_descriptor(user, descriptor, course_key) return _has_staff_access_to_descriptor(user, descriptor, 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