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
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
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
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