Skip to content

Commit

Permalink
Merge pull request #49 from PwQt/48
Browse files Browse the repository at this point in the history
Fix for #48
  • Loading branch information
PwQt authored Jan 30, 2024
2 parents 83546d7 + 44976f0 commit a2cb8f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/scripts/magic-item-entry/AbstractMagicItemEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@ export class AbstractMagicItemEntry {

async renderSheet() {
this.entity().then((entity) => {
entity.ownership.default = CONST.DOCUMENT_PERMISSION_LEVELS.LIMITED;
const sheet = entity.sheet;
/* TODO TO REMOVE ??
if (this.pack === "world") {
sheet.options.compendium = this.pack;
} else {
sheet.options.editable = false;
}
*/
sheet.render(true);
});
}
Expand Down
1 change: 1 addition & 0 deletions src/scripts/magicitemsheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export class MagicItemSheet {
});
}
const itemTmp = await fromUuid(uuid);
itemTmp.ownership.default = CONST.DOCUMENT_PERMISSION_LEVELS.LIMITED;
itemTmp.sheet.render(true);
}

Expand Down

0 comments on commit a2cb8f3

Please sign in to comment.