Commit e0bfed84 authored by Glaucia S. Santos's avatar Glaucia S. Santos

Change permissions for messages

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