Skip to content

Commit 453ee58

Browse files
committed
Fix ProjectChatFileList permission
1 parent 50a0e50 commit 453ee58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chats/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def get_queryset(self):
152152

153153
class ProjectChatFileList(ListCreateAPIView):
154154
serializer_class = UserFileSerializer
155-
permission_classes = [IsAuthenticated]
155+
permission_classes = [IsProjectChatMember]
156156

157157
def get_queryset(self):
158158
messages = ProjectChat.objects.get(id=self.kwargs["pk"]).messages.all()

0 commit comments

Comments
 (0)