'Enables staff only for the specified xblock.'

def _enable_staff_only(self, location):

    xblock = modulestore().get_item(location)
    xblock.visible_to_staff_only = True
    self.store.update_item(xblock, self.user.id)
