'Override to hide information to users not able to access.'

def serialize(self, hda, keys, user=None, **context):

    if (not self.manager.is_accessible(hda, user, **context)):
        keys = self._view_to_keys('inaccessible')
    return super(HDASerializer, self).serialize(hda, keys, user=user, **context)
