Hi, for first, CanTango is really great complex authorization system for Rails! Sadly that it doesn't have more contributors.
Back to my issue.
I have try to implement a permission system (Software as a servise) where account have license permission and could have many users. Every user have role permission.
This is vice-versa than what in on wiki
I try to explain in model situation as CMS system.
ACCOUNT: this is unique service per client
has one license
has many users (trough)
LICENSE: packages like Small package, medium package, large package
belongs to account
USER: Devise model authentication
has many accounts (trough)
has one role
ROLE: superadmin, admin, subadmin(author or moderator if you can)
belongs to user
----------------
and there is for example piece of CMS system
ARTICLE: cms posts
belongs to category
belongs to account
belongs to user
CATEGORY: inclusion of article
has many articles
belongs to account
belongs to user
-----------
As Superadmin creating Account and first User which have role admin. Account is assign to one of three licenses. This admin get login data and have full permissions on this account (creates articles, categories etc.). Admin can create multiple authors(users) within account. Authors can manage only own articles and categories. (there could be some restrictions, author can create only 5 categories etc.)
Cantango is really great for it! But i don't know how to start implement it.
Permissions are linear:
license -> role
Can you give me a hint please? Thank you and keep great work!