Skip to content

Commit 38ecbd9

Browse files
authored
Merge pull request #4956 from neos/bugfix/remove-VisibilityConstraints-isDisabledContentShown
BUGFIX: Remove invalid `isDisabledContentShown()` method
2 parents c3a81af + cac807b commit 38ecbd9

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Repository/Query/QueryUtility.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,9 @@ public static function getRestrictionClause(
2828
string $tableNamePrefix,
2929
string $prefix = ''
3030
): string {
31-
if ($visibilityConstraints->isDisabledContentShown()) {
32-
return '';
33-
}
31+
// TODO evaluate $visibilityConstraints->tagConstraints {@see Neos\ContentGraph\DoctrineDbalAdapter\Domain\Repository\ContentSubgraph::addSubtreeTagConstraints}
3432

35-
return '
36-
AND NOT EXISTS (
37-
SELECT 1
38-
FROM ' . $tableNamePrefix . '_restrictionhyperrelation rest
39-
WHERE rest.contentstreamid = ' . $prefix . 'h.contentstreamid
40-
AND rest.dimensionspacepointhash = ' . $prefix . 'h.dimensionspacepointhash
41-
AND ' . $prefix . 'n.nodeaggregateid = ANY(rest.affectednodeaggregateids)
42-
)';
33+
return '';
4334
}
4435

4536
/**

Neos.ContentRepository.Core/Classes/Projection/ContentGraph/VisibilityConstraints.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ private function __construct(
3434
) {
3535
}
3636

37-
public function isDisabledContentShown(): bool
38-
{
39-
return $this->tagConstraints->contain(SubtreeTag::disabled());
40-
}
41-
4237
public function getHash(): string
4338
{
4439
return md5(implode('|', $this->tagConstraints->toStringArray()));

0 commit comments

Comments
 (0)