Hello everyone,

First of all, excuse my english, i will make all effort for being
clear.

I have a question about ACL and/or Groups.

I created an application with CakePHP with "Users" and "Groups".
Groups are managed by a classic TREE behavior and everything is
working fine.
Users are attached to one Group, Groups have all one parent (except
for the ROOT node of course).

So now my question is :
With the ACL and/or Auth component, is it possible to give CRUD rights
(for any controller in the application or at least one controller) for
ONE user regards all users in this group and in his sub-group ?

Juste a little example for a better comprehension : let's imagine that
we have 4 groups :

G1
_G2
__G4
_G3

G1 is the root, G2 is in G1, G4 is in G2 (and of course also in G1)
and G3 is in G1.

Smith is the responsible (admin) of G2.
Bob is a simple user of G2.
Adam is the responsible (admin) of G4.
John is a simple user of G3.

Smith have CRUD rights for all people in his group G2 : Bob and Adam.
He can delete them, create other users in G2 etc... and when he use an
action from a controller (for example a "index()"), he can only view
users from his group/sub-group
Smith can't do anything on John because he's not in his group or sub-
group.

I have already implemented the Auth part : login/logout is ok. But now
i have no idea if what i want to do is possible with CakePHP.
Thanks a lot for any help for my problem, it's been several days that
i try to implement that whithout success...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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