Re: [Rails] CanCan issue when being very specific

2010-12-02 Thread Joshua Martin
What message are you getting? On Thu, Dec 2, 2010 at 9:28 AM, Leonel *.* wrote: > So I got CanCan and Devise working well. I have two types of users: > Admins and Nonadmins. Admins can edit all of Nonadmins profiles. > > The problem is, every user (either Admin or Nonadmin) belongs to an > Accou

[Rails] CanCan issue when being very specific

2010-12-02 Thread Leonel *.*
So I got CanCan and Devise working well. I have two types of users: Admins and Nonadmins. Admins can edit all of Nonadmins profiles. The problem is, every user (either Admin or Nonadmin) belongs to an Account or Organization. Admins should only be able to edit users from their own Account or Organ