Soujanya2004 / wanderlust-2024

This project aims to provide a comprehensive platform for travel enthusiasts, offering features such as map integration πŸ—ΊοΈ, user-generated content ✍️, and a seamless experience for discovering new destinations. ✈️✨
https://wanderlust-2024-tkqf.onrender.com/listing
MIT License
27 stars 79 forks source link

Restrict Access to Individual Listings for Non-Logged-In Users (#476) #553

Closed dipexplorer closed 2 weeks ago

dipexplorer commented 2 weeks ago

Fixes #476

This PR adds backend logic to restrict access to individual listings for non-logged-in users. By requiring login, this update aims to enhance user engagement and encourage account creation. When a non-logged-in user tries to view a listing, they will be redirected to the listings page with a flash message encouraging them to sign in or sign up.

Changes

Testing Instructions

  1. Pull this branch.
  2. Run npm install to install dependencies.
  3. Run npm test to execute the test suite.
  4. Verify that ...

Screenshots (if applicable)

https://github.com/user-attachments/assets/31e5fec2-33ef-4171-84fa-74c2b932805a

Checklist

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
wanderlust-2024 βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Nov 9, 2024 10:19pm
github-actions[bot] commented 2 weeks ago

Thank you for submitting your pull request! πŸ™Œ We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊