- Issue created by @RedwanJamous
- Merge request !12Check disable_sql_rewrite value before altering queries → (Open) created by Unnamed author
The Access policy module does not respect the Disable SQL rewriting option in Views.
Even when SQL rewriting is disabled, the module still adds access tags to the query.
Update access_policy_views_query_alter() to check the Disable SQL rewriting option before adding access tags.
Suggested fix:
function access_policy_views_query_alter(ViewExecutable $view, QueryPluginBase $query) { if ($query instanceof Sql && empty($query->options['disable_sql_rewrite'])) { // Existing logic remains unchanged. } }
None.
None.
None.
Active
2.0
Code