Skip to content

Don’t allow other users to edit my trip information

Design Figma →

link_preview

As a logged user in a "Caroster plus" configured event, if I create a trip (travel) I am the only one who can delete it or change its informations.

Validation

  1. Create a trip with my account

  2. Create a trip with another account

  3. Connect with the first account used

  4. See that I can only edit my trip

Tasks

  • On travel creation, link it to the authenticated user

  • Set a policy in Strapi. Used if a authenticated user is linked to the travel/trip.

  • Adapt frontend

    • Hide the edit buttons if I am not the trip owner

    • Update gql query

  • Update Data processing registry

    • The trip is linked to an identified person

Notion: https://www.notion.so/Don-t-allow-other-users-to-edit-my-trip-information-3b2736b56e074448941ff194c89eb079

Points: 5

Edited by Simon Mulquin