@gating_enabled(default=[])
def get_gated_content(course, user):
 if _has_access_to_course(user, 'staff', course.id):
  return []
 else:
  return [m['content_id'] for m in find_gating_milestones(course.id, None, 'requires', {'id': user.id})]

@ gating_enabled ( default = [ ] ) def get_gated_content ( course , user ) : if _has_access_to_course ( user , 'staff' , course . id ) : return [ ] else : return [ m [ 'content_id' ] for m in find_gating_milestones ( course . id , None , 'requires' , { 'id' : user . id } ) ]
returns the unfulfilled gated content usage keys in the given course .