-
Notifications
You must be signed in to change notification settings - Fork 3
Bug: Only the intended user can edit the post. #53
Copy link
Copy link
Open
Labels
Feature requestLogicFunctionality implementationFunctionality implementationbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature requestLogicFunctionality implementationFunctionality implementationbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested