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

lobsterr created an issue. See original summary.

  • lobsterr committed 33e43150 on 2.0.x
    feat: #3626643 Reduce access condition by checking, if status checked...
lobsterr’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.