Rails object based permission/authorization engine?

Posted by Vlad on Stack Overflow See other posts from Stack Overflow or by Vlad
Published on 2010-03-17T16:21:57Z Indexed on 2010/03/19 6:41 UTC
Read the original article Hit count: 152

Hi

I want to add "Sharing documents" feature to my app, like in google documents service. As i see:

User can:

  • can list/view/create/edit/delete own documents
  • share own document to everyone - its a public document
  • share own document to another user with read-only access
  • share own document to another user with read-write access
  • view list of own documents and users to whom he gave permission to read and write
  • view list of foreign documents
  • view/edit foreign document with read/write permissions

Please tell me, which permission/authorization solution is preffered for my task?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about authorization