benschaf / waste-schedule

This is a waste-management App with CRUD functionality. Never forget to take out your bins on time! Connect with your community and be Eco-Conscious together.
0 stars 0 forks source link

Backend Comment deletion authentification throws an error #69

Closed benschaf closed 2 months ago

benschaf commented 2 months ago

Describe the bug When testing with unittests a non owner can delete a comment - resulting in an error

To Reproduce Steps to reproduce the behavior:

  1. run python unittests

Expected behavior The non owner should be rejected from accessing the comment crud operations

benschaf commented 2 months ago

fixed with b661a0d

fix: correctly check the user on comment deletion This error was found because the test case threw an error when the wrong user tried to delete a comment.