AllowEditInvariantFromNonDefault : Fix property write guard to use correct 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.
This commit is contained in:
Mads Rasmussen
2025-09-26 09:25:51 +02:00
committed by Andy Butland
parent e752828a24
commit 811cccf24f

View File

@@ -115,7 +115,7 @@ export class UmbContentWorkspacePropertyElement extends UmbLitElement {
this._workspaceContext.propertyWriteGuard.isPermittedForVariantAndProperty(
propertyVariantId,
this._propertyType,
propertyVariantId,
this._datasetVariantId,
),
(write) => {
this._writeable = write;