2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Escape hatch if role not required

This commit is contained in:
Oliver Walters
2021-02-26 14:26:37 +11:00
parent 0e971c468b
commit 81e9fd7a44
2 changed files with 4 additions and 1 deletions

View File

@ -373,6 +373,8 @@ class PartList(generics.ListCreateAPIView):
queryset = Part.objects.all()
role_required = 'part'
starred_parts = None
def get_serializer(self, *args, **kwargs):