createDisabled check

This commit is contained in:
Yurii
2026-02-12 13:43:22 +02:00
parent 72f0f8e0a7
commit fbab0a9803

View File

@@ -846,7 +846,8 @@ class DetailRecordView extends BaseRecordView {
if (this.duplicateAction) { if (this.duplicateAction) {
if ( if (
this.getAcl().check(this.entityType, 'create') && this.getAcl().check(this.entityType, 'create') &&
!this.getMetadata().get(['clientDefs', this.scope, 'duplicateDisabled']) !this.getMetadata().get(['clientDefs', this.scope, 'duplicateDisabled']) &&
!this.getMetadata().get(['clientDefs', this.scope, 'createDisabled'])
) { ) {
this.addDropdownItem({ this.addDropdownItem({
label: 'Duplicate', label: 'Duplicate',