@register.filter
def forum_moderated_by(topic, user):

    return user.is_superuser or user in topic.forum.moderators.all()
Check if user is moderator of topic's forum.
dataset/ETHPy150Open slav0nic/djangobb/djangobb_forum/templatetags/forum_extras.py/forum_moderated_by