Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
allow passing in body to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneJeon committed Sep 10, 2019
1 parent 716dc01 commit a1af9d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit a1af9d3

Please sign in to comment.