Skip to content

Conversation

@madsrasmussen
Copy link
Contributor

@madsrasmussen madsrasmussen commented Sep 25, 2025

Fixes: #20250

Replaces the use of propertyVariantId with _datasetVariantId in the property write guard check to ensure permissions are evaluated for the correct variant.
@madsrasmussen madsrasmussen marked this pull request as ready for review September 25, 2025 20:15
Copilot AI review requested due to automatic review settings September 25, 2025 20:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the property write guard logic where the wrong variant ID was being passed as a parameter, causing incorrect permission checks for content properties.

  • Corrects the fourth parameter of isPermittedForVariantAndProperty to use the dataset variant ID instead of the property variant ID

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected now, thanks @madsrasmussen. Do you consider this a regression and one we should merge in for 16.3 please?

@AndyButland AndyButland merged commit 8481104 into main Sep 26, 2025
28 checks passed
@AndyButland AndyButland deleted the v16/bugfix/Non-variant-property-not-disabled-in-other-languages-than-default branch September 26, 2025 07:25
AndyButland pushed a commit that referenced this pull request Sep 26, 2025
…rrect variant ID (closes #20250) (#20277)

Fix property write guard to use correct variant ID

Replaces the use of propertyVariantId with _datasetVariantId in the property write guard check to ensure permissions are evaluated for the correct variant.
@AndyButland
Copy link
Contributor

Cherry-picked for 16.3.

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.

[V16] Non variant property not disabled in other languages than default one

3 participants