I simpy can't understant auth/ACL system. I can manage to get my user authenticated (woohooo) but I can't seem to setup properly the ACL system.
I want to group up users. That way I can give permissions to a group creating a profile system. I currently have 5 diferent roles: - sysadmin - this can see everything. it's a group i'll reserve to configure the app in runtime - admins - business layer. company workers - associates - affiliate users. this is a broker system so other companies can put their offer on the platform. - users - this will be registered people from the general public - guests - all unregistered users (don't know if this is a profile or not) sysadmin, admins and associates will have a dedicated backoffice. users will have a profile page and guests will only be allowed at the public pages (articles and basic search) I've read a lot of articles in blogs and in documentention but can't seem to find a working solution (or at least I'm not smart enough to get it to work) So what I'm doing is: 1. Got a users table. Autentication's already working. Salt is empty and I'm md5'ing the password at appcontroler and user model level. 2. got a groups table that joins with the users table using hasmany and belongsto binding at model level. 3. I guess I need some table that lists all the actions in the app right? I'm really puzzled with this. 4. After that I would need a table that joins permissions and groups using correspondent id's right? 5. I'll need something in the controller to tell it to check the acl table and see if the logged in user is authorized (or not) to visit that specific controller/action. 6. also at view level I'll need this information to build dynamic menus. Don't want to show what users ar not allowed to see. Or should I do this at controller level and send a list of available actions to the view via set? 7. also need the user info at the view to show name and other table info. I know this is the million dollar issue. I've seen thousands of articles talking about this on the internet. And yes, I've read the articles and the documentation. I really need help on this please. I'm going in circles with problem for the past 4 days. My project is slipping and I'm already facing a time problem. Thank you so much in advance for any help you can give me. Ricardo -- *Ricardo 'Zen' Valfreixo* Freelance Web Developer *Contacts:* E-Mail, Gtalk, MSN: [EMAIL PROTECTED] *Web:* http://www.minimalisticstudios.com http://umcigarritoparadescontrair.blogspot.com *Twitter:* http://www.twitter.com/minimalistic --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
