File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed
Neos.ContentGraph.PostgreSQLAdapter/src/Domain/Repository/Query
Neos.ContentRepository.Core/Classes/Projection/ContentGraph Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,9 @@ public static function getRestrictionClause(
28
28
string $ tableNamePrefix ,
29
29
string $ prefix = ''
30
30
): string {
31
- if ($ visibilityConstraints ->isDisabledContentShown ()) {
32
- return '' ;
33
- }
31
+ // TODO evaluate $visibilityConstraints->tagConstraints {@see Neos\ContentGraph\DoctrineDbalAdapter\Domain\Repository\ContentSubgraph::addSubtreeTagConstraints}
34
32
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 '' ;
43
34
}
44
35
45
36
/**
Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ private function __construct(
34
34
) {
35
35
}
36
36
37
- public function isDisabledContentShown (): bool
38
- {
39
- return $ this ->tagConstraints ->contain (SubtreeTag::disabled ());
40
- }
41
-
42
37
public function getHash (): string
43
38
{
44
39
return md5 (implode ('| ' , $ this ->tagConstraints ->toStringArray ()));
You can’t perform that action at this time.
0 commit comments