I've read every article I could find about ACL's and the different implementations that others have come up with. However I haven't been able to really convince myself on how to implement them into my project. I'm sure this type of project will apply to many others so I'm interested in hearing thoughts about the best way to implement them in the case described below:
The application I'm building is an ecommerce app to some extent. Imagine you can create a store, add products, and assign them to categories. You have admins and editors. Admins can create a store, add products, setup product categories, etc. The association between products and categories is HTBTM. Admins have full access; editors can edit only. As an admin or editor you have access only to the items that belong to your store. Thus I don't want admin of store A to be able to manipulate the url and change items from store B. Based on this example and from everything I read you could do the following: 1) Create an ARO for each admin or editor when they are created 2) Anytime an admin adds a product or a category a corresponding ACO is created for that record But this brings up a few questions: A) Do I create a parent ARO (group) to hold all of the admins and editors of a store? B) Do I create a parent ACO (group) to hold all of the products and categories? - Doing A and B would allow me to say group A ARO's can access group A ACO's - Is this the best way to implement the authorization component of the application? Would it be better to ignore the grouping of ARO's and ACO's? I'm concerned about the scalability of implementing this. If I have 1000 products and 100 categories that would be 1100 ACO's for one store. Not to mention that if I had 3 editors for that store I would have 3 x 1100 AroAco's? This is where I was hoping the grouping of ACO's under a parent would come in. You could just grant editor A access to group A ACO's - right? If you have 300 stores this quickly grows... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
