Challenge 1: Fix the product editing bug

Updated: 

Learn how to debug and fix a product editing issue in a Ruby on Rails application, enhancing your full-stack development skills with practical, hands-on experience.

This lesson is from Full Stack Rails Mastery.

Create another user account in an incognito (private) browser window or a different browser.

Log in as that new user and go to one of the product pages created by the first user.

You will be able to edit that product, even though you are not the seller it belongs to.

Can you fix this bug?