http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2/

To DB

https://github.com/justinledwards/tinyauthdb/blob/2.1/app/Controller/Component/Auth/TinyAuthorize.php

On Tue, May 15, 2012 at 1:47 PM, rihad <ri...@mail.ru> wrote:

> 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
> cake-php+unsubscr...@googlegroups.com 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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to