'Restore a deleted user to PlexPy.
Required parameters:
user_id (str):          The id of the Plex user
username (str):         The username of the Plex user
Optional parameters:
None
Returns:
None'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of('admin'))
@addtoapi()
def undelete_user(self, user_id=None, username=None, **kwargs):

    if user_id:
        user_data = users.Users()
        delete_row = user_data.undelete(user_id=user_id)
        if delete_row:
            return {'message': delete_row}
    elif username:
        user_data = users.Users()
        delete_row = user_data.undelete(username=username)
        if delete_row:
            return {'message': delete_row}
    else:
        return {'message': 'no    data    received'}
