Was I over thinking this....
Maybe this simple approach would work.....

What if I had a table with User_id, Role_id, org_id
It is setup as User hasMany Role.
the Role_id is unique with the org_id.

When get the user, I get an array of roles.

Then when I call the Org controller, I create an isAuthorized function 
to see if
     the user, has a role for the org, if not, say no
     if the user has a valid role, there is another table with 
permissions for the role on which actions are allowed.

Maybe I can put some of the checking, and updates to the tables in a 
behavior attached to OrgController and others.

What am I missing?

Thanks,
Bill



--
View this message in context: 
http://cakephp.1045679.n5.nabble.com/Is-this-too-complicated-tp5628799p5637128.html
Sent from the CakePHP mailing list archive at Nabble.com.

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