Skip to content

Commit

Permalink
Merge pull request #62 from CarterDC/daily
Browse files Browse the repository at this point in the history
Urgent fix to itemSheets
  • Loading branch information
CarterDC authored Oct 18, 2021
2 parents 93890b2 + 71b696a commit fdd52fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions module/apps/sheets/m20e-item-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ export default class M20eItemSheet extends ItemSheet {
return sheetData;
}


/** @override */
activateListeners(html) {
//disable buttons/inputs given their 'protection status'
const isProtected = this.item.data.isProtectedType && this.actor.data.data.creationDone;
if ( isProtected && !game.user.isGM ) {
this._protectElements(html);
if ( this.isOwned ) {
const isProtected = this.item.data.isProtectedType && this.actor.data.data.creationDone;
if ( isProtected && !game.user.isGM ) {
this._protectElements(html);
}
}

//actions for everyone
Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"discord": "Carter_DC#1097"
}
],
"version": "0.22.61",
"version": "0.22.62",
"templateVersion": "1",
"minimumCoreVersion": "0.8.3",
"compatibleCoreVersion": "0.8.9",
Expand Down

0 comments on commit fdd52fe

Please sign in to comment.