human
Solve the following python programming problem given the following code:
@second_order_decorator(jwt_required)
def is_moderator(f):
assistant
#Here is the Python program you requested.

    """Allows Organizer, Co-organizer and Moderator to access the resource(s).
    :param f:
    :return:
    """
    @wraps(f)
    def decorated_function(*args, **kwargs):
        user = current_identity
        if user.is_staff:
            return f(*args, **kwargs)
        if (('event_id' in kwargs) and (user.is_moderator(kwargs['event_id']) or user.is_organizer(kwargs['event_id']) or user.is_coorganizer(kwargs['event_id']))):
            return f(*args, **kwargs)
        return ForbiddenError({'source': ''}, 'Moderator    Access    is    Required.').respond()
    return decorated_function