Skip to content

Commit

Permalink
Allow cloning even if record is not writeable (#916)
Browse files Browse the repository at this point in the history
* 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']
  • Loading branch information
cancan101 authored Nov 29, 2024
1 parent 3669cc6 commit e51d7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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: !record.data['writeable'] || !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 Expand Up @@ -243,4 +243,4 @@ pimcore.plugin.datahub.config = Class.create({
});
}

});
});

0 comments on commit e51d7cc

Please sign in to comment.