I am using the Acl component using Auth under "actions" mode, so I'm
not sure if this will help.  At the very least, it might be helpful to
know that I have been able to setup something like what you wanted.
Here is how I did it.

Under "actions" mode, I have the following:

Acos:
---------
Posts
 |-edit
 |-|-45
 |-view
 |-index
---------

Aros:
--------
Guest
 |--Charles
 |--Editor
 |--|--Admin
-------

To give all users the ability to view all posts, I would do the
following in the console:

cake acl grant Guest Posts/view *

To give editors the ability to also edit Posts:

cake acl grant Editor Posts/edit *

To give Admin access to all Posts actions:

cake acl grant Admin Posts *

To give Charles access to the Post with id #45

cake acl grant Charles Post/edit/45 *

For this last example, you will have to customize the Auth::actions()
function in order for Auth to look at the id field in the URL.


On Feb 24, 3:00 pm, Steve <[EMAIL PROTECTED]> wrote:
> I am working on ACL and I think I'm almost there at getting it to work
> properly.
>
> I have the following objects:
>
> Aros:
> -------------------
> Group
>    |- Group.1
>       |- User.1
> ----------------------
> User.1 inherits all of Group.1's permissions, this works fine
>
> Acos:
> -----------------
> Post
>    |-Post.1
>    |-Post.2
> -------------------
>
> Aro_Aco
> --------------------
> aro(Group.1), aco(Post), CRUD(1111)
>
> Now, if I grant Group.1 permission to Post with CRUD = 1111, shouldn't
> User.1 have the ability to edit any post? I'm not having any luck with
> this. If I grant Group.1 permission to edit Post.1 than it works, but
> I want to just grant Group.1 permission to edit all posts
--~--~---------~--~----~------------~-------~--~----~
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