Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.

Commit 213b841

Browse files
committed
fix: acl.req must not check req.body on DELETE
1 parent 43b622d commit 213b841

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/acl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function req({adapter, resource}) {
4646

4747
const data = _.get(req, 'body.data', false)
4848

49-
if (!data) {
49+
if (!data && _.includes([PRIV_CREATE, PRIV_UPDATE], privilege)) {
5050
return Promise.reject(
5151
new HTTPError(ACL_EMPTY_BODY)
5252
)

0 commit comments

Comments
 (0)