[ANN] Simple ACL

149 views
Skip to first unread message

chakrit

unread,
Sep 5, 2012, 3:07:58 PM9/5/12
to nod...@googlegroups.com
Couldn't find one clean and simple ACL implementation. So I decided to write one.


Very alpha atm. but it's pretty simple and it has tests :)

Comments, patches and suggestions, pretty please? :)

Joshua Gross

unread,
Sep 5, 2012, 6:56:03 PM9/5/12
to nod...@googlegroups.com
Have you seen mongoose-acl? Does it operate similarly to yours? It's nice and I've been using it for about 24 hours. 

-- Joshua Gross
Christian / SpanDeX.io / BA Candidate of Computer Science, UW-Madison 2013
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Mark Hahn

unread,
Sep 5, 2012, 7:11:04 PM9/5/12
to nod...@googlegroups.com
 It's nice and I've been using it for about 24 hours. 

lol

chakrit

unread,
Sep 6, 2012, 1:12:03 AM9/6/12
to nod...@googlegroups.com
mongoose-acl? not until you mentioned it :p

Looking quickly It seems to operate similarly but, well, there isn't so many ways to implement ACLs anyway. So, no surprise there. 

but seems it is made for using with mongoose. simple-acl is intended to be standalone.
If you use mongoose, then it might be a good module to use.

You can do similar thing pretty easily with simple-acl, just do something like

    acl.grant(user.id, 'widget/123/read', callback);

Which IMO, would've achieved the same thing.
Reply all
Reply to author
Forward
0 new messages