Skip to content

Commit

Permalink
Allow cloning even if record is not writeable
Browse files Browse the repository at this point in the history
The ability to clone does not depends on the source record being  writeable.
  • Loading branch information
cancan101 authored Nov 22, 2024
1 parent d25b3ea commit a623b8c
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: !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 a623b8c

Please sign in to comment.