Hey everyone. In the last app I made it was fairly straight forward. Front end for users, admin area for admin. This app is a little more complicated and I wanted your opinions on the best strategy. The site will have Site Admin (myself and moderators.) Dealers may sign up to the site and have there own "Storefronts." (store fronts may have only one owner or master admin but multiple users for maintenance) the Dealers require a smaller admin section for there storefront. Customers may come and browse the entire site including all available Storefronts. Would it be better to run two different logins with 2 different user tables? SiteWideAdmin and Dealers. Or one master login with one user table and allot of permissions & roles spread all over ? Cheers, brianp -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 26 March 2010 06:22, brianp <brian.o.pearce-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey everyone. > > In the last app I made it was fairly straight forward. Front end for > users, admin area for admin. > > This app is a little more complicated and I wanted your opinions on > the best strategy. > > The site will have Site Admin (myself and moderators.) > > Dealers may sign up to the site and have there own > "Storefronts." (store fronts may have only one owner or master admin > but multiple users for maintenance) > > the Dealers require a smaller admin section for there storefront. > > Customers may come and browse the entire site including all available > Storefronts. > > Would it be better to run two different logins with 2 different user > tables? SiteWideAdmin and Dealers. Or one master login with one user > table and allot of permissions & roles spread all over ?The latter. Users are users so why complicate it with extra tables and models, along with duplicated code? Just add to the available roles to provide the access you require. Colin> > Cheers, > brianp > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
If you need some inspiration, you could take a look at the role_requirement<http://github.com/timcharper/role_requirement>plugin. It works with restful-authentication – I think it''s great. /Lasse 2010/3/26 brianp <brian.o.pearce-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Hey everyone. > > In the last app I made it was fairly straight forward. Front end for > users, admin area for admin. > > This app is a little more complicated and I wanted your opinions on > the best strategy. > > The site will have Site Admin (myself and moderators.) > > Dealers may sign up to the site and have there own > "Storefronts." (store fronts may have only one owner or master admin > but multiple users for maintenance) > > the Dealers require a smaller admin section for there storefront. > > Customers may come and browse the entire site including all available > Storefronts. > > Would it be better to run two different logins with 2 different user > tables? SiteWideAdmin and Dealers. Or one master login with one user > table and allot of permissions & roles spread all over ? > > Cheers, > brianp > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.