Skip to content

Commit

Permalink
revert perms changes, they aren't necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Aug 23, 2024
1 parent 6c007be commit a12d177
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions indigo_api/fixtures/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions indigo_content_api/v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions indigo_content_api/v3/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a12d177

Please sign in to comment.