mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 00:27:01 +00:00
createDisabled check
This commit is contained in:
@@ -846,7 +846,8 @@ class DetailRecordView extends BaseRecordView {
|
||||
if (this.duplicateAction) {
|
||||
if (
|
||||
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({
|
||||
label: 'Duplicate',
|
||||
|
||||
Reference in New Issue
Block a user