I have been reading more into ACL and with help from the Cake Group it is
making more sense so I thank you!
I have a question I was hoping for some advice on.
My idea involves 2 Groups of Users which have no direct access with each
other initially.
Where say AGENTS belong to a GROUP and INVESTORS belong to another GROUP.
Now each member of the AGENTS group can write articles that only members of
the INVESTORS GROUP can see.
So if JEFF (AGENT) writes a post LAURA (INVESTORS) can see it .... easy
enough to set that up.
Now after LAURA (INVESTOR) reads the post by JEFF (AGENT) and likes what it
says she wants to allow JEFF to view her INVESTOR profile. Because right now
JEFF (AGENT) cannot view any GROUP 2 INVESTOR profile I need to find away
that allows an INVESTOR to AGENT interaction based on the INVESTOR allowing
the specific AGENT
I was thinking something like this
function initDB() {
$group =& $this->User->Group;
//Allow admins to everything
$group->id = 1;
$this->Acl->allow($group, 'controllers');
//allow investors (LAURA)
$group->id = 2;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/Investors'); // can only view /
edit / delete thier own content
$this->Acl->allow($group, 'controllers/Agents/view'); // can view all
agents posts
//allow agents
$group->id = 3;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/Investors/view); //so they do
have access to view rights but i need a way to block them until an Investor
allows
$this->Acl->allow($group, 'controllers/Agents'); // can only view /
edit / delete thier own content
}
Does anyone know a good way to set this up? Ideas suggestions?
thanks again
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---