If the item, and the item_group, belong_to a :user, and you're using
"hard-wired" roles, you probably want something like:
class Item
def accepts_role?(role, user)
role == 'admin' && (user == self.user ||
item_group.accepts_role(role, user))
end
end
If you're using the object_roles data models, I'm afraid I can't offer any help.
- donald