Problem/Motivation
When we build access conditions for the query, we build both branches for published content and unpublished, but if user already sets status filter in the query, then a big part of calculations and conditions can be and will be absolutely redundant
Proposed resolution
1) Check if entity support status
2) Get a base table
3) And check all possible cases for status
4) Reduce condition only for the selected status
5) if no status is detected fallback to both published (1) and unpublished status (0)
Comments
Comment #3
lobsterr commented