Commit b7496738 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update permission classes settings

parent 247c7fea
......@@ -156,8 +156,7 @@ class ProfessorMessageViewSet(viewsets.ModelViewSet):
queryset = ProfessorMessage.objects.all()
filter_fields = ('course', 'classrooms')
serializer_class = ProfessorMessageSerializer
# permission_classes = (IsAssistantOrCoordinatorOrAdminOrRecipient)
permission_classes = (IsAdminOrReadOnly, )
permission_classes = (IsAssistantOrCoordinatorOrAdminOrRecipient, )
def perform_create(self, serializer):
classes = serializer.context['request'].data.get('classes', None)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment