Friday, October 31, 2008

Re: Admin + Members suggested setup??

I've created some sites with multiple admin routes (i.e. members and
admin) although only in 1.1 - there is an article about it in the
bakery: http://bakery.cakephp.org/articles/view/using-cake_admin-for-multiple-user-types
- it works very well.

I seem to remember reading that this is built in in 1.2, but haven't
tried this out yet - I imagine you would just specify an array of
possible routes in /config/core.php, but I could be wrong - although
it would be easy to find out...

Personally I would see it as working in a complementary with
permissions systems (ACL) so for instance you might specify a group
with access to the admin methods, a group with access to members
methods and then the methods that represent your public facing (and
authentication free) site. So in a way it a just about keeping things
nice and tidy. Use Auth to take care of a user login, but it is up to
you to decide where to let somebody go once they have logged in - I
would say that is what ACL is for.

Maybe it is more an issue of philosophy - you need to find a way of
working and structuring things that is good for you - even within the
constraints of Cake there are often many ways of doing things.

On Oct 28, 8:33 pm, Brenton B <brenton.bar...@gmail.com> wrote:
> Quick question as to what would be the best Cake-y setup:
>
> So I've got a list of Users who can either be Admin, Editors, or
> simply Members.
> Members can edit their own profiles, but Admin can also edit anyone's
> profile (at this point Editors are just normal Members with special
> status).
>
> When it comes to admin routing, should that only be used for strictly
> Admins and not Members?
> Ex:
> /profiles/edit -> what Members use and there's a check that the
> profile matches with the member
> /profiles/admin_edit -> only Admin uses this.
>
> And how would that all work with ACL? It seems like there's a wee bit
> of overlap here.
>
> How have people set this up?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: