Fixed so that the delete option is available in the compendium (#1843)

This commit is contained in:
WBHarry 2026-04-28 07:46:46 +02:00 committed by GitHub
parent 1cece731ee
commit ca32aa5d35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -531,7 +531,7 @@ export default function DHApplicationMixin(Base) {
visible: element => {
const target = element.closest('[data-item-uuid]');
const doc = getDocFromElementSync(target);
return doc?.isOwner && target.dataset.itemType !== 'beastform';
return doc?.isOwner !== false && target.dataset.itemType !== 'beastform';
},
callback: async (target, event) => {
const doc = await getDocFromElement(target);