def tasks(p):
    """
    Verb API: Return a list of tasks for this user, or all tasks.
    """
    if(p.caller.is_wizard()):
        return p.exchange.get_tasks()
    else:
        return p.exchange.get_tasks(user_id=p.caller.get_id())