Pre- and Post-process hook in DatabaseConnection for sql_query
Since Extbase moved to use the TYPO3 Database API it's possible to add even more content/record security as focus can be put at one single entry point to the database.
This change introduces two new hooks (four, including the once for DBAL) before and after the general sql_query (used by Extbase).
From here you get the created query and the parent DatabaseConnection object. From here you can ex. check whether or not access should be granted to records fetched.