I am using cakephp 1.2 alpha.
I would like some suggestions/feedback on my implementation of a buddy
system using cakephp and ACL component.

ARO
Group::Users
  Group::Guests
      anom
  Group::Members
      david
      cool_dude
  Group::Admins
      power_dude

ACO
Root
   +Users
       cool_dude
       david
    +Posts
    +Photos

and then I would set permissions as such.
$this->Acl->grant(cool_dude,david,read)
$this->Acl->grant(david,cool_dude,read)

So that cool_dude and david can view all of each others posts, photos,
etc. Is this a smart approach? it seems pretty heavy to me as I will
have to duplicate all users in the ARO and ACO table in addition to
creating 2 entries in the aro_aco table for permissions. How does one
create a buddy/friend system in cakephp similar to that of facebook/
myspace?


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

Reply via email to