Summary
Query hints are applied before the "oro_datagrid.orm_datasource.result.before" is being called. (see src/Oro/Bundle/DataGridBundle/Datasource/Orm/OrmDatasource.php) That way if we add other stuff like the OrmDatasourceAclListener, which adds query hints for applying ACL rules, the hints are not rewalked again.
If this as expected? We override the OrmDatasourceAclListener to apply more strict rules based on custom datagrid options. But since the query hints are resolved before the dispatch of the event, they are never applied.
This how it is now.
Summary
Query hints are applied before the "oro_datagrid.orm_datasource.result.before" is being called. (see src/Oro/Bundle/DataGridBundle/Datasource/Orm/OrmDatasource.php) That way if we add other stuff like the OrmDatasourceAclListener, which adds query hints for applying ACL rules, the hints are not rewalked again.
If this as expected? We override the OrmDatasourceAclListener to apply more strict rules based on custom datagrid options. But since the query hints are resolved before the dispatch of the event, they are never applied. This how it is now.
How I believe it should be:
Steps to reproduce
Actual Result The ACLs did not apply
Expected Result
ACLs being applied
Details about your environment