Re: CakePHP ACL and paginate

2013-02-03 Thread byqsri
Fow retrive all documents that a user can access and how can I paginate them I should retrieve with some queries all the ids of the documents that a user can access and then do a CakePHP find('all') with an IN condition on all ids. Now for me this is very not efficient and if I have thousands

Re: CakePHP ACL and paginate

2013-02-01 Thread byqsri
Can someone help me about this? Many Thanks On Thursday, 31 January 2013 17:30:37 UTC+1, byqsri wrote: Hi I have these Model : User (User belongsTo Group) Group (Group hasMany User) Document I manage permissions to access to documents with ACL (User and Group like Aro and Document like

Re: CakePHP ACL and paginate

2013-02-01 Thread André Luis
I am not sure, but i think you can do it with Containable behavior or with joins and conditions Em quinta-feira, 31 de janeiro de 2013 14h30min37s UTC-2, byqsri escreveu: Hi I have these Model : User (User belongsTo Group) Group (Group hasMany User) Document I manage permissions to

CakePHP ACL and paginate

2013-01-31 Thread byqsri
Hi I have these Model : User (User belongsTo Group) Group (Group hasMany User) Document I manage permissions to access to documents with ACL (User and Group like Aro and Document like Aco) Now I have two questions : 1)How can I retrive all documents that a user can access and how can I