Skip to content

Commit

Permalink
removed check on resourceExists
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Nov 30, 2023
1 parent f29a258 commit 594f37a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/handlers/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ async function checkPermission (request, patchObject, resourceExists) {
// Now that we know the details of the patch,
// we might need to perform additional checks.
let modes = []
// acl:default Write is required for create when resource exists
if (!resourceExists) modes = ['Append']
const { acl, session: { userId } } = request
// Read access is required for DELETE and WHERE.
// If we would allows users without read access,
Expand Down

0 comments on commit 594f37a

Please sign in to comment.