From f4a30e3215516ef9b178ddfa3cd008600ffc1f27 Mon Sep 17 00:00:00 2001 From: Philip Gardner Date: Tue, 28 Oct 2014 15:02:49 +0000 Subject: [PATCH] Removed IsAuthenticatedOrReadOnly --- user_management/api/avatar/views.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/user_management/api/avatar/views.py b/user_management/api/avatar/views.py index bdc08d0..154b00e 100644 --- a/user_management/api/avatar/views.py +++ b/user_management/api/avatar/views.py @@ -1,9 +1,6 @@ from django.contrib.auth import get_user_model from rest_framework import generics, parsers, response -from rest_framework.permissions import( - IsAuthenticated, - IsAuthenticatedOrReadOnly, -) +from rest_framework.permissions import IsAuthenticated from rest_framework.status import HTTP_204_NO_CONTENT from . import serializers @@ -34,7 +31,7 @@ class ProfileAvatar(generics.RetrieveUpdateAPIView): avatar?width=100&height=100&crop=1&anchor=tr """ model = User - permission_classes = (IsAuthenticated, IsAuthenticatedOrReadOnly) + permission_classes = (IsAuthenticated,) serializer_class = serializers.AvatarSerializer parser_classes = (parsers.MultiPartParser,)