Maybe ```'operators' in [g.name for name in context['request'].groups]```