[API] Adjust permissions for machine restart

Can only be actioned by a staff user
This commit is contained in:
Oliver Walters 2026-06-18 09:24:17 +00:00
parent fc15f30f8f
commit 4690fc34b2
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
from django.urls import include, path, re_path
from drf_spectacular.utils import extend_schema
from rest_framework import permissions
from rest_framework.exceptions import NotFound
from rest_framework.response import Response
from rest_framework.views import APIView
@ -200,7 +201,10 @@ class RegistryStatusView(APIView):
- GET: Provide status data for the machine registry
"""
permission_classes = [InvenTree.permissions.IsAuthenticatedOrReadScope]
permission_classes = [
permissions.IsAuthenticated,
InvenTree.permissions.IsAdminOrReadScope,
]
serializer_class = MachineSerializers.MachineRegistryStatusSerializer