BeforeFind query filtering (task #3267)
BeforeFind query filtering (task #3267)

Query filtering based on current user permissions has been made
more advanced. Now it includes user capabilities check against
action's full access capabilities, which will filter out all
results if current user has no access to the action at all. This
solves the issue of associated models displaying all records, even
if user had no access to them.

Additionally a flag can be passed using query options to skip
the filtering process all together, just like the skip tables
functionality where you can define a list of table names to skip
from this filtering. The flag that needs to passed using the query
options is 'accessCheck' and it must be set to false.

QoboLtd/cakephp-roles-capabilities,QoboLtd/cakephp-roles-capabilities