mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:57:01 +00:00
createDisabled check
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user