Hi
I use ACL to control access to model Post made by User.
Now I have to find all or paginate all posts that are accessible by a
specific user.
How can I use ACL inside find operation to do this?
Many Thanks
Marco
Check out the new CakePHP Questions site http://cakeqs.org and help others with
Have anyone some suggestions about this?
On 23 Lug, 13:58, marco.rizze...@gmail.com
marco.rizze...@gmail.com wrote:
Hi
I use ACL to control access to model Post made by User.
Now I have to find all or paginate all posts that are accessible by a
specific user.
How can I use ACL inside find
*/
$perms = $this-Acl-Aco-find(
'all',
array(
'fields' = array('Aco.foreign_key'),
'conditions' = array(
'Aco.model
I'm not sure what exactly you're trying to do. What I've done in a
situation where I need to determine a user's posts, I define an
owner field in the posts table in the database. In that case, I can
find all where 'owner' = $user_id. If you're setting permissions on
individual posts in a separate