diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz index 6c09960b..5e6c45aa 100644 Binary files a/rowers/tests/testdata/testdata.tcx.gz and b/rowers/tests/testdata/testdata.tcx.gz differ diff --git a/rowers/views/apiviews.py b/rowers/views/apiviews.py index 828216e8..910f962c 100644 --- a/rowers/views/apiviews.py +++ b/rowers/views/apiviews.py @@ -426,6 +426,9 @@ def get_crewnerd_liked(request): @csrf_exempt @logged_in_or_basicauth() +#@api_view(["POST"]) +#@permission_required('rower.is_not_freecoach', fn=get_user_by_userid, raise_exception=True) +#@permission_classes([IsAuthenticated]) def strokedata_rowingdata(request): """ Upload a .csv file (rowingdata standard) through API, using Basic Auth diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index 8d862009..5bf05b8b 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -481,7 +481,7 @@ REST_FRAMEWORK = { # 'rest_framework.permissions.DjangoModelPermissions' ], 'DEFAULT_AUTHENTICATION_CLASSES': ( - 'rest_framework.authentication.BasicAuthentication', + #'rest_framework.authentication.BasicAuthentication', # 'rest_framework.authentication.SessionAuthentication', # 'rest_framework.authentication.TokenAuthentication', 'oauth2_provider.contrib.rest_framework.OAuth2Authentication',