Allow members to view shelves
This commit is contained in:
parent
d1e128d708
commit
4a4c358eb3
|
@ -1790,7 +1790,7 @@ class HostingViewSet(Base):
|
||||||
|
|
||||||
|
|
||||||
class StorageSpaceViewSet(Base, List, Retrieve, Update):
|
class StorageSpaceViewSet(Base, List, Retrieve, Update):
|
||||||
permission_classes = [AllowMetadata | IsAdmin]
|
permission_classes = [AllowMetadata | IsAuthenticated, IsAdminOrReadOnly]
|
||||||
queryset = models.StorageSpace.objects.all().order_by('id')
|
queryset = models.StorageSpace.objects.all().order_by('id')
|
||||||
serializer_class = serializers.StorageSpaceSerializer
|
serializer_class = serializers.StorageSpaceSerializer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user