Is there a Rails ACL plugin/gem that uses MPTT (Modified Preorder Tree Traversal) as the technique to administer permissions?
I'm looking for ACL that will allow me to create roles, assign users to one or many roles, set permissions at the role level and at the user level.
We use CakePHP at the moment and the built in ACL is built using the Tree behavior (which is MPTT). I've read that Rails has acts_as_nested_set which is MPTT. Are there any ACL plugins/gem that utilize acts_as_nested_set?
The biggest thing is that user and role permissions are editable via a GUI (persisted in the database).
The Ruby Gem ** ActiveAclPlus ** seems to do what you want:
https://github.com/pschrammel/active_acl_plus
The ActiveAclPlus system consists of access objects, which can be organized by access groups, that request privileges on each other. Allowing or denying access to a privilege is controlled by ACL (access control list entry) objects. Access objects and access groups can be instances of arbitrary ActiveRecord model classes enhanced by acts_as_access_object and acts_as_access_group. They are associated to ACL entries via polymorphic associations.
I personally like the Declarative Authorization Gem a lot - but that does not do tree traversal, but it allows at least inheritance from other rules