Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mblarsen authored Oct 19, 2017
1 parent d842b05 commit 5899a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const acl = new Acl()

// Attach acl function to user class/constructor
// Adds: user.can() function
acl.attach(User)
acl.mixin(User)

acl.rule('view', Post)
acl.rule(['edit', 'delete'], Post, (user, post) => post.id === user.id)
Expand Down

0 comments on commit 5899a2f

Please sign in to comment.