Reputation: 1333
I'm working on a project that needs to have flexible authorization. What I mean by that is this:
My users will be divided in to client groups, so each client could have many users.
Each user needs to be able to have different roles, but the definitions of these roles needs to be able to be set on a per client basis, and ideally in a way that, say, a user with an ultra_admin
role would be able to edit the roles for her client group.
I've looked in to the following:
and a handful of others, and I can't see a way to do this in them, although I think it's probably possible in acl9
it doesn't look like it's what it was designed for.
Is there an existing authorization gem that makes this easy? Is there a reason that this isn't out there (i.e. am I missing an obvious solution that is simpler)? If it's possible with one of the above gems is there an example anywhere?
Upvotes: 0
Views: 84
Reputation: 10701
I couldn't find anything like this either, and so I rolled my own.
I'm working on an update, and rename, which will work very much the same way and be out soon, but this version on github we use in production.
Upvotes: 1