Skip to content

Commit

Permalink
Check pimcore.settings['data-hub-writeable']
Browse files Browse the repository at this point in the history
  • Loading branch information
cancan101 authored Nov 22, 2024
1 parent a623b8c commit d0a90cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/public/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pimcore.plugin.datahub.config = Class.create({
menu.add(new Ext.menu.Item({
text: t('clone'),
iconCls: "pimcore_icon_clone",
disabled: !this.userIsAllowedToCreate(record.data.adapter),
disabled: !pimcore.settings['data-hub-writeable'] || !this.userIsAllowedToCreate(record.data.adapter),
handler: this.cloneConfiguration.bind(this, tree, record)
}));

Expand Down

0 comments on commit d0a90cc

Please sign in to comment.