def require_teacher(f):

    @require_login
    @wraps(f)
    def wrapper(*args, **kwds):
        if not api.user.is_teacher() or not api.config.enable_teachers:
            raise WebException("You must be a teacher!")
        return f(*args, **kwds)
    return wrapper
Returns a MODE to ban nick on channel.
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/annotations.py/require_teacher--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/src/ircmsgs.py/ban