You right!
this is my second post in fact!

I came back to CAKEPHP, and after playing around with it and
understanding it better I must say it's simply great!

I'm testing the last alpha version (1.2.0.5146alpha).
Not sure if I misunderstood something but as I undestood, in my AROS I
must set every user. Namely if an user logs in, I must set

i.e. (from
http://groups.google.com/group/cake-php/browse_thread/thread/479cd6f421ed29f7/e3786402ef869517?lnk=gst&q=ACl+1.2&rnum=1#e3786402ef869517)
--------------------------------------------------------------------------------------------------
//get the aro model
$aro = $this->Acl->Aro;

//create a new aro for User:scook, related to a user in the Users
table
$aro->create( array('model' => 'User', 'foreign_key' => 2, 'alias' =>
'scook') );

//save the new aro
$aro->save();
--------------------------------------------------------------------------------------------------

The above code assumes that user.id = 2 and user.username= scott in my
User DB table

What I want to achieve is the following:
A) allow/deny access to users according to the Group they belong to
B) allow to edit/delete let's say a userprofile or a user post only if
an user is the OWNER of that post (has posted it) or if he belongs to
a group higher in the ranking

What I don't want:
C) enter a record in the ARO table foe every user
i.e.  $aro->create( array('model' => 'User', 'foreign_key' => 2,
'alias'  =>
'scook') );

Hope I have been less cryptic!

Dan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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