as its up to you how you structure your app you can have role or group based
users

or just a plain user that does not relate to groups.

I have three groups admin (1), members (2) & users (3) -- I am beginning to
set up acl (you don't need acl for groups)

[1] admin
  [6] sams
[2] members
[3] users
  [4] advanced
  [5] basic
  [7] suspended

I am extending the CakeDC users plugin and am using grouped users not roles.

https://github.com/CakeDC/users/

so I alter the table to have a group_id (group hasMany user, user belongs to
group)

when you retrive the session info this will have group info if relations are
working correctly.

if you use role based users then make a new field and enter admin or normal
for each user.
new users should be normal by default (make your app restrict the non admin
users to own data and no access to view other user accounts nor create new
accounts)

the users plugin is a good source of info (setting it up may seem taxing but
it is worth it)


 - S

+44 (0)7908 069 219



On 29 June 2011 15:59, Prabha Vathi <[email protected]> wrote:

> Hi,
>
> How does cake know whether it is a normal user or an admin user?
> There are only two types. Admin and Normal User
>
> Both are stored in users table
>
>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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