-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(content patch authorization): fix
parent_id
check
This commit updates the `patchHandler` function in the `/api/v1/contents/[username]/[slug]`. It changes the check for `unfilteredBodyValues.parent_id` to `contentToBeUpdated.parent_id`. This modification ensures that the user has the correct permission to edit content.
- Loading branch information
1 parent
19952ed
commit 42d643f
Showing
2 changed files
with
169 additions
and
1 deletion.
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