Readd permission class in transaction view set

This commit is contained in:
Keannu Bernasol 2023-12-14 19:28:10 +08:00
parent 31b527cd9d
commit 8abf689544

View file

@ -8,6 +8,6 @@ class TransactionViewSet(viewsets.ModelViewSet):
# Only allow GET, POST/CREATE
# Transactions cannot be deleted
http_method_names = ['get', 'post']
# permission_classes = [IsAuthenticated]
permission_classes = [IsAuthenticated]
serializer_class = TransactionSerializer
queryset = Transaction.objects.all()