If you need an ACL-like way of user A to assign CRUD-permissions to B and C,
this is the way to go. On the other hand, if there is another connection
between A, B, and C that leads to the permissions, you'd use that
relationship instead.
Steffen
if_attribute always starts off from the current object, a league in this case.
role :league_admin do
includes :guest
has_permission_on :leagues do
to :manage
if_attribute :authorized_users => contains {user}
end
end
Now, your league model only needs a standard Rails
has_many :authorized_models
has_many :authorized_users, :through => :authorized_models, :source => ...
Steffen