Skip to content

Bug: Only the intended user can edit the post. #53

@manendrav

Description

@manendrav

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:

  1. Create two account with different emails.
  2. Create a post from one of the accounts.
  3. Switch the account.
  4. Go to the blogs and open the created post.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature requestLogicFunctionality implementationbugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions