Fix: merge d'options sur token

This commit is contained in:
Vincent Vandemeulebrouck 2023-03-15 00:34:20 +01:00
parent 45bfc69b39
commit ffccc819f1

View File

@ -9,7 +9,7 @@ export class RdDSheetUtility {
: document.getUserLevel(game.user); : document.getUserLevel(game.user);
mergeObject(options, { mergeObject(options, {
isGM: game.user.isGM, isGM: game.user.isGM,
isOwned: document.parent, isOwned: document.parent ? true : false,
editable: editable, editable: editable,
cssClass: editable ? "editable" : "locked", cssClass: editable ? "editable" : "locked",
isLimited: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED, isLimited: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED,