Let users edit or delete their own review

Aperta
#44 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
css
Ambito
full-stack

Direzione di ricerca

No files are named, so start from the existing review-posting route and the template that renders a review, since that is where the Edit and Delete controls belong. Read how the project already builds login-required, CSRF-protected POST routes and how the logged-in user is exposed to handlers, then reuse that pattern for the update and delete routes. Done means the buttons appear only on the viewer's own review, and the server rejects any request whose review id does not belong to the session user.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend frontend help wanted

Once posted, a review can't be changed.

  • Show Edit and Delete buttons on the user's own review
  • POST routes for both, CSRF-protected and login-required
  • Check on the server that the review belongs to the logged-in user. Never trust an id sent from the form.
Lingua principale
CSS
Stelle
1
Fork
1
Merge medio
39m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NotADIM2/GameVault

Tutte le issue di NotADIM2/GameVault

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.