Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-08-05 07:33:30 +02:00
parent a761ac0893
commit f56e989ed4
2 changed files with 3 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ from rest_framework_swagger.renderers import OpenAPIRenderer, SwaggerUIRenderer
@csrf_exempt
@login_required()
@api_view(["GET","POST"])
@permission_classes([IsAuthenticated])
def strokedatajson_v2(request,id):
"""
POST: Add Stroke data to workout

View File

@@ -686,7 +686,8 @@ try:
except ImportError:
pass
from rest_framework.decorators import api_view, renderer_classes
from rest_framework.decorators import api_view, renderer_classes, permission_classes
from rest_framework.permissions import IsAuthenticated
from rowers.permissions import IsOwnerOrNot, IsCompetitorOrNot