Hi. I need users to belong to more than one role. Like "Can-do-this",
"Can-do-that", etc. I think a many-to-many relationship fits this
need. Like this (in pseudo-sql)

table users:
id int primary key;
name varchar;

table roles:
id int primary key;
name varchar;

table roles_users:
id int primary key;
user_id foreign key users(id);
role_id foreign key roles(id);

So each user can have multiple roles listed in roles_users. I looked
at the ACL tutorial:
http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html
but it only makes use of a single group_id. Cake's Auth subsystem
looks fine to me. Can I use it with multiple roles described above?
Thanks.

-- 
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