'Use history to see if current user owns HDA.'

def is_owner(self, hda, user, current_history=None, **kwargs):

    history = hda.history
    if self.user_manager.is_admin(user):
        return True
    if self.user_manager.is_anonymous(user):
        if (current_history and (history == current_history)):
            return True
        return False
    return (history.user == user)
