Skip to content

[BUG] Gate open and remove actions in relation tables on element permissions#1872

Open
Jonathon-Meney-Torq wants to merge 1 commit into
pimcore:2026.2from
TorqIT:feature/relation-table-visibility
Open

[BUG] Gate open and remove actions in relation tables on element permissions#1872
Jonathon-Meney-Torq wants to merge 1 commit into
pimcore:2026.2from
TorqIT:feature/relation-table-visibility

backend change for determing view and edit rights on related objects

27f2f13
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jun 8, 2026 in 2m 0s

Codacy Static Code Analysis

Annotations

Check notice on line 127 in src/DataIndex/Grid/GridSearch.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/DataIndex/Grid/GridSearch.php#L127

The method searchElementsForUser uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.

Check notice on line 27 in src/DataObject/Service/RelationNormalizationContext.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/DataObject/Service/RelationNormalizationContext.php#L27

Expected 1 blank line(s) before first member var; 0 found

Check notice on line 29 in src/DataObject/Service/RelationNormalizationContext.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/DataObject/Service/RelationNormalizationContext.php#L29

Expected 2 blank lines before function; 1 found

Check notice on line 32 in src/DataObject/Service/RelationNormalizationContext.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/DataObject/Service/RelationNormalizationContext.php#L32

Expected 1 blank line before closing function brace; 0 found

Check notice on line 32 in src/DataObject/Service/RelationNormalizationContext.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/DataObject/Service/RelationNormalizationContext.php#L32

Expected 2 blank lines after function; 1 found

Check notice on line 42 in src/Element/Schema/RelatedElementData.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Element/Schema/RelatedElementData.php#L42

Incorrect spacing between argument "$hasAccess" and equals sign; expected 0 but found 1

Check notice on line 44 in src/Element/Schema/RelatedElementData.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Element/Schema/RelatedElementData.php#L44

Incorrect spacing between argument "$canEdit" and equals sign; expected 0 but found 1

Check notice on line 33 in src/Element/Service/ElementDataService.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Element/Service/ElementDataService.php#L33

Expected 2 blank lines before function; 1 found