Skip to content

[BUG] Gate open and remove buttons in relation tables on element permissions#3671

Open
Jonathon-Meney-Torq wants to merge 3 commits into
pimcore:2025.4from
TorqIT:feature/relation-table-visibility
Open

[BUG] Gate open and remove buttons in relation tables on element permissions#3671
Jonathon-Meney-Torq wants to merge 3 commits into
pimcore:2025.4from
TorqIT:feature/relation-table-visibility

Conversation

@Jonathon-Meney-Torq

Copy link
Copy Markdown

Summary

  • Added hasAccess and canEdit optional fields to ManyToManyRelationValueItem interface
  • Open (folder) button renders only when hasAccess !== false
  • Remove (trash) button renders only when props.disabled !== true && canEdit !== false
  • Fields default to true when absent, so all existing relation usages are unaffected

@Jonathon-Meney-Torq Jonathon-Meney-Torq changed the base branch from 2026.x to 2025.4 June 8, 2026 14:29
@Jonathon-Meney-Torq Jonathon-Meney-Torq force-pushed the feature/relation-table-visibility branch from 4fa888e to 307302b Compare June 8, 2026 14:43
@Jonathon-Meney-Torq Jonathon-Meney-Torq changed the title [ENHANCEMENT] Gate open and remove buttons in relation tables on element permissions [BUG] Gate open and remove buttons in relation tables on element permissions Jun 8, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@markus-moser markus-moser self-assigned this Jun 9, 2026
@markus-moser

Copy link
Copy Markdown
Contributor

@Jonathon-Meney-Torq Nice, thanks a lot for the PR. The changes in package.json and package-lock.json seem to be unrelated and let the pipeline fail. Could you please revert them? If you could give me write access to the PR I can also check it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants