Describe the bug
If the two different user has same username, then they both able to edit the post uploaded by the user. This led to security and privacy issue.
To Reproduce
Steps to reproduce the behavior:
- Create two account with different emails.
- Create a post from one of the accounts.
- Switch the account.
- Go to the blogs and open the created post.
- See error
Expected behavior
A user who has same username not able to edit or delete the other user post.
Additional context
You can add functionality like user can't create account with existing username or use some kind of ID for compare the users who can edit the post or who not.
Describe the bug
If the two different user has same username, then they both able to edit the post uploaded by the user. This led to security and privacy issue.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A user who has same username not able to edit or delete the other user post.
Additional context
You can add functionality like user can't create account with existing username or use some kind of ID for compare the users who can edit the post or who not.