[API] Adjust permissions for machine restart
Can only be actioned by a staff user
This commit is contained in:
parent
fc15f30f8f
commit
4690fc34b2
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue