From a623b8c17691e9a486964c0f06af0c4a892942d9 Mon Sep 17 00:00:00 2001 From: Alex Rothberg Date: Fri, 22 Nov 2024 15:38:18 -0500 Subject: [PATCH] Allow cloning even if record is not writeable The ability to clone does not depends on the source record being writeable. --- src/Resources/public/js/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/public/js/config.js b/src/Resources/public/js/config.js index e14bd3e0..2c091459 100644 --- a/src/Resources/public/js/config.js +++ b/src/Resources/public/js/config.js @@ -209,7 +209,7 @@ pimcore.plugin.datahub.config = Class.create({ menu.add(new Ext.menu.Item({ text: t('clone'), iconCls: "pimcore_icon_clone", - disabled: !record.data['writeable'] || !this.userIsAllowedToCreate(record.data.adapter), + disabled: !this.userIsAllowedToCreate(record.data.adapter), handler: this.cloneConfiguration.bind(this, tree, record) })); @@ -243,4 +243,4 @@ pimcore.plugin.datahub.config = Class.create({ }); } -}); \ No newline at end of file +});