diff --git a/index.js b/index.js index a10a988..c62610b 100644 --- a/index.js +++ b/index.js @@ -191,8 +191,8 @@ module.exports = (acl, opts) => { return super.update(access ? access.filter(body) : body) } - delete () { - this._checkAccess('delete') + delete (body) { + this._checkAccess('delete', body) return super.delete() } diff --git a/package.json b/package.json index e1e5d92..7e04a6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "objection-authorize", - "version": "0.6.1", + "version": "0.6.2", "description": "\"magical\" access control integrated with objection.js", "main": "index.js", "repository": "JaneJeon/objection-authorize",