Have you considered using Access Control Lists?

http://manual.cakephp.org/chapter/acl

CraigFisher wrote:
> I'm working on an app which required different classes of user -
> basically, superadmins, admins, and users - primarily all the users can
> 'use' the system, but each level can 'own' a set of the lower level.
>
> So a superadmin can manager the admins and users that it 'owns'
> An admin can manage the users that it 'owns'
>
> I had thought to have three models - using the
> field(name,conditions,order) to differentiate between the types of
> users; but all models use the same table (with a differentiating 'type'
> field - and a reference to the 'parent' of the user).
>
> I guess the question is - is this way the right way of doing it -
> multiple Models accessing the same table?
> 
> (Not used MVC for anything 'serious' until now.....)
> 
> -C


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to