From 5d72eb4f1d22bc31bbc1cdc436e4ca92c1857cd1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 12 May 2026 14:39:40 +1000 Subject: [PATCH] [API] Role fix (#11932) - Allow users to view BOM validation information with bom.view role --- src/backend/InvenTree/part/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/InvenTree/part/api.py b/src/backend/InvenTree/part/api.py index 3df7e3a0ef..05fc1ca57a 100644 --- a/src/backend/InvenTree/part/api.py +++ b/src/backend/InvenTree/part/api.py @@ -599,7 +599,7 @@ class PartValidateBOM(RetrieveUpdateAPI): queryset = Part.objects.all() serializer_class = part_serializers.PartBomValidateSerializer - role_required = 'bom.change' + role_required = 'bom' @extend_schema( responses={ @@ -610,7 +610,7 @@ class PartValidateBOM(RetrieveUpdateAPI): def update(self, request, *args, **kwargs): """Validate the referenced BomItem instance. - As this task if offloaded to the background worker, + As this task is offloaded to the background worker, we return information about the background task which is performing the validation. """ part = self.get_object()