Skip to content

Commit

Permalink
- Remove wrong dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Nov 16, 2020
1 parent b743893 commit 8196391
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mapstore2_adapter/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
from rest_framework.permissions import IsAdminUser, IsAuthenticated, IsAuthenticatedOrReadOnly # noqa
from oauth2_provider.contrib.rest_framework import OAuth2Authentication
from geonode.base.api.permissions import IsOwnerOrReadOnly

from .models import MapStoreResource
from .serializers import (UserSerializer,
Expand All @@ -41,7 +40,7 @@ class MapStoreResourceViewSet(viewsets.ModelViewSet):
""" Only Authenticate User perform CRUD Operations on Respective Data
"""
authentication_classes = [SessionAuthentication, BasicAuthentication, OAuth2Authentication]
permission_classes = [IsAuthenticatedOrReadOnly, IsOwnerOrReadOnly]
permission_classes = [IsAuthenticatedOrReadOnly, ]
model = MapStoreResource
serializer_class = MapStoreResourceSerializer

Expand Down

0 comments on commit 8196391

Please sign in to comment.