-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Security Fix: Deny users from editing others posts. (#48)
* Vulnerability Fix: Deny edits from other users. Users currently can go to other peoples posts and edit them without any checks if its their post or not, all they have to do is figure out the id for the post and go to /editor/[postId], do their edits and save it. This can be very bad (not so much in this circumstance). * Add the missing code (forgot to add a few lines) * Fixed linting & code errors. * Fixed typescript issues. * Overall fixes, read the comment. --------- Co-authored-by: Touha Zohair <[email protected]>
- Loading branch information
1 parent
84529e2
commit f52d0f3
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters