human
Complete this python program:
def admin_or_self(method):
assistant
#Here is the Python program you requested.

    """Decorator for restricting access to either the target user or admin
    """
    def m(self, name, *args, **kwargs):
        current = self.get_current_user()
        if (current is None):
            raise web.HTTPError(403)
        if (not ((current.name == name) or current.admin)):
            raise web.HTTPError(403)
        if (not self.find_user(name)):
            raise web.HTTPError(404)
        return method(self, name, *args, **kwargs)
    return m