diff options
| -rw-r--r-- | pydis_site/apps/api/serializers.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/pydis_site/apps/api/serializers.py b/pydis_site/apps/api/serializers.py index 25c5c82e..10eb3839 100644 --- a/pydis_site/apps/api/serializers.py +++ b/pydis_site/apps/api/serializers.py @@ -167,7 +167,7 @@ class InfractionSerializer(ModelSerializer):              raise ValidationError({'expires_at': [f'{infr_type} infractions cannot expire.']})          hidden = attrs.get('hidden') -        if hidden and infr_type in ('superstar', 'warning'): +        if hidden and infr_type in ('superstar', 'warning', 'voice_ban'):              raise ValidationError({'hidden': [f'{infr_type} infractions cannot be hidden.']})          if not hidden and infr_type in ('note', ): | 
