Skip to content

Commit 594f37a

Browse files
committed
removed check on resourceExists
1 parent f29a258 commit 594f37a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/handlers/patch.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ async function checkPermission (request, patchObject, resourceExists) {
143143
// Now that we know the details of the patch,
144144
// we might need to perform additional checks.
145145
let modes = []
146-
// acl:default Write is required for create when resource exists
147-
if (!resourceExists) modes = ['Append']
148146
const { acl, session: { userId } } = request
149147
// Read access is required for DELETE and WHERE.
150148
// If we would allows users without read access,

0 commit comments

Comments
 (0)