From 4a4c358eb388d6d23f8a36c618b7280527c77b9c Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 15 Jun 2023 02:08:26 +0000 Subject: [PATCH] Allow members to view shelves --- apiserver/apiserver/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/views.py b/apiserver/apiserver/api/views.py index 509a8a7..10f6ce8 100644 --- a/apiserver/apiserver/api/views.py +++ b/apiserver/apiserver/api/views.py @@ -1790,7 +1790,7 @@ class HostingViewSet(Base): class StorageSpaceViewSet(Base, List, Retrieve, Update): - permission_classes = [AllowMetadata | IsAdmin] + permission_classes = [AllowMetadata | IsAuthenticated, IsAdminOrReadOnly] queryset = models.StorageSpace.objects.all().order_by('id') serializer_class = serializers.StorageSpaceSerializer