Skip to content

Commit e51d7cc

Browse files
authored
Allow cloning even if record is not writeable (#916)
* Allow cloning even if record is not writeable The ability to clone does not depends on the source record being writeable. * Check pimcore.settings['data-hub-writeable']
1 parent 3669cc6 commit e51d7cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resources/public/js/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pimcore.plugin.datahub.config = Class.create({
209209
menu.add(new Ext.menu.Item({
210210
text: t('clone'),
211211
iconCls: "pimcore_icon_clone",
212-
disabled: !record.data['writeable'] || !this.userIsAllowedToCreate(record.data.adapter),
212+
disabled: !pimcore.settings['data-hub-writeable'] || !this.userIsAllowedToCreate(record.data.adapter),
213213
handler: this.cloneConfiguration.bind(this, tree, record)
214214
}));
215215

@@ -243,4 +243,4 @@ pimcore.plugin.datahub.config = Class.create({
243243
});
244244
}
245245

246-
});
246+
});

0 commit comments

Comments
 (0)