diff --git a/indigo_api/fixtures/user.json b/indigo_api/fixtures/user.json index ff60c341e..1c0120f79 100644 --- a/indigo_api/fixtures/user.json +++ b/indigo_api/fixtures/user.json @@ -105,8 +105,7 @@ "last_login": "2012-01-13 00:14:00+00:00", "groups": [], "user_permissions": [ - ["view_published_document", "indigo_api", "document"], - ["view_taxonomytopic", "indigo_api", "taxonomytopic"] + ["view_published_document", "indigo_api", "document"] ], "password": "pbkdf2_sha256$12000$NkxvaoXfb4p2$A6u0ez3trvm9VyIT606HB5G3NKRLl4znE4ZlsZS5T7U=", "date_joined": "2012-01-13 00:14:00+00:00" diff --git a/indigo_content_api/v2/views.py b/indigo_content_api/v2/views.py index 5039dd63e..84a330a10 100644 --- a/indigo_content_api/v2/views.py +++ b/indigo_content_api/v2/views.py @@ -3,7 +3,7 @@ from django.http import Http404 from rest_framework import mixins, viewsets, renderers from rest_framework.authentication import SessionAuthentication, TokenAuthentication -from rest_framework.permissions import IsAuthenticated, BasePermission, DjangoModelPermissions +from rest_framework.permissions import IsAuthenticated, BasePermission from rest_framework.response import Response from django_filters.rest_framework import DjangoFilterBackend from django.db.models import Q @@ -410,7 +410,6 @@ class TaxonomyTopicView(ContentAPIBase, viewsets.ReadOnlyModelViewSet): queryset = TaxonomyTopic.objects.none() serializer_class = TaxonomyTopicSerializer lookup_field = 'slug' - permission_classes = [IsAuthenticated, DjangoModelPermissions] def get_queryset(self): # when listing, just use the top-level public nodes diff --git a/indigo_content_api/v3/views.py b/indigo_content_api/v3/views.py index 9481d9704..b0959ba38 100644 --- a/indigo_content_api/v3/views.py +++ b/indigo_content_api/v3/views.py @@ -2,7 +2,6 @@ from django.shortcuts import get_object_or_404 from django.http import Http404 from rest_framework.mixins import ListModelMixin -from rest_framework.permissions import IsAuthenticated, DjangoModelPermissions from rest_framework.viewsets import GenericViewSet from rest_framework import mixins, viewsets @@ -75,7 +74,6 @@ class TaxonomyTopicWorkExpressionsView(ContentAPIBase, ListModelMixin, GenericVi """ List of work expressions for a taxonomy topic.""" filter_backends = PublishedDocumentDetailViewV3.filter_backends filterset_fields = PublishedDocumentDetailViewV3.filterset_fields - permission_classes = [IsAuthenticated, DjangoModelPermissions] taxonomy_topic = None def get_serializer_class(self):