Hi

I am working on my first CakePHP website which allows a user to
register and list boats for sale.

I have been looking into CakePHP's ACL and think it would be best to
dive in at the deep end and get to grips with how I can use it to help
me in this and future projects.


I have the following models in the application (relevant to this post)

-- Account (login, password, etc)
-- Boat (details about the boat)


I can see needing the following AROs and ACOs to be able to have a
multiple level permission system.

AROs:

 Proposed groups / users
     --- Administrators
       ---- admin

     --- Registered
       ---- niall
       ---- etc etc

     --- Everyone (i.e. unregistered)
       ---- anonymous

  Accounts (users)
     --- etc
     --- etc

ACOs:

  These would set the defaults for access to an account or a boat.

       Account (Everyone: none ; Registered: read; Administrators: *)

       Boat (Everyone: read ; Registered: read; Administrators: *)


  *multiple*

     Account-AccountID (Owner: *)
       this ACO would define the permissions which each user has for
       their account (i.e. one per account)

     Boat-AccountID (Owner: Update, Delete)
       this ACO defines the permissions which an account has for a
       boat (i.e. one per boat).

  */multiple*




The above is the general idea of how the system should work with
CakePHP, which I have hopefully correctly picked up from the
documentation.

On a final note - the alias for AROs (i.e. Account.$account_id) - Am I
correct in assuming this is soley for the purpose of identifying
multiple AROsidentified by one string, so they can be deleted /
modified based on this?



Thanks for taking a look, I'd apprecitate anything anybody can offer.


Nd


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

Reply via email to