Re: Admin Sections & Roles

Colin Law
Fri, 26 Mar 2010 09:10:42 -0000

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