[Rails] Re: One account several users with different privileges

2010-06-02 Thread Carlos A. Cabrera
I'm working on something similar right now. I created a very simple login/authentication method and now I'm dealing with users privileges in the site. In my case I have posts that belongs to companies so only users from the post's company can view them. Also each user has roles (Admin) to edit,

[Rails] Re: One account several users with different privileges

2010-06-02 Thread Cristian Dlucca
Carlos Cabrera wrote: I'm working on something similar right now. I created a very simple login/authentication method and now I'm dealing with users privileges in the site. In my case I have posts that belongs to companies so only users from the post's company can view them. Also each user

[Rails] Re: One account several users with different privileges

2010-06-02 Thread chewmanfoo
We had a similar problem - we did it this way: set a global string ADMINCODE = somethingImpossibleToGuess and include a text field for this in the signup form. If the user can enter an admin code, then they get to be admin. On Jun 2, 6:39 pm, Cristian Dlucca li...@ruby-forum.com wrote: Carlos