Skip to content

Commit

Permalink
Addded authentication for put function
Browse files Browse the repository at this point in the history
  • Loading branch information
svarona authored and saramonzon committed Sep 27, 2023
1 parent ca00705 commit 8d071b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drylab/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ def service_full_data(request):
@swagger_auto_schema(
method="put", manual_parameters=[resolution_number_param, resolution_state_param]
)
@authentication_classes([SessionAuthentication, BasicAuthentication])
@api_view(["PUT"])
@permission_classes([IsAuthenticated])
def update_state(request):
def all_resolutions_delivered(service, state):
if (
Expand Down

0 comments on commit 8d071b4

Please sign in to comment.