In my routes, I have a specific path:
{path: 'Demands/:id', component: EditDemandesComponent}
. This path allows me to edit demands. However, I've noticed that if the ID does not belong to one of my demands, I am still able to access the path and view/edit another user's demand information.
How can I address this security concern and ensure that users can only edit their own demands?