Skip to content

Commit 8481104

Browse files
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.
1 parent 7572ef5 commit 8481104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.UI.Client/src/packages/content/content/global-components/content-workspace-property.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class UmbContentWorkspacePropertyElement extends UmbLitElement {
115115
this._workspaceContext.propertyWriteGuard.isPermittedForVariantAndProperty(
116116
propertyVariantId,
117117
this._propertyType,
118-
propertyVariantId,
118+
this._datasetVariantId,
119119
),
120120
(write) => {
121121
this._writeable = write;

0 commit comments

Comments
 (0)