def wrapped(*args, **kwargs): rest.requireAdmin(rest.getCurrentUser()) return fun(*args, **kwargs)
def accessDecorator(*args, **kwargs): rest.requireAdmin(rest.getCurrentUser()) return fun(*args, **kwargs)
def wrapped(*iargs, **ikwargs): rest.requireAdmin(rest.getCurrentUser()) return args[0](*iargs, **ikwargs)
def wrapped(*iargs, **ikwargs): rest.requireAdmin(rest.getCurrentUser()) return fun(*iargs, **ikwargs)