Skip to content

Commit e821ffc

Browse files
author
Martin Martinez Rivera
committed
Fixed acl handlers for put, patch, and post.
1 parent c9cbd8d commit e821ffc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎server.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ router.use('/*', function(req, res, next) {
164164
//ACL handlers
165165
router.get("/*", acl.allowReadHandler);
166166
router.head("/*", acl.allowReadHandler);
167-
router.post("/*", acl.allowWriteHandler);
168-
router.patch("/*", acl.allowWriteHandler);
169-
router.put("/*", acl.allowWriteHandler);
167+
router.post("/*", acl.allowAppendThenWriteHandler);
168+
router.patch("/*", acl.allowAppendThenWriteHandler);
169+
router.put("/*", acl.allowAppendThenWriteHandler);
170170
router.delete("/*", acl.allowWriteHandler);
171171

172172
// Convert json-ld and nquads to turtle

0 commit comments

Comments
 (0)