From d314dc39a0c4f90a87d8534f2a375adad9753374 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 16 Mar 2023 23:10:17 +0100 Subject: [PATCH] Fix actor --- module/rdd-sheet-utility.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/rdd-sheet-utility.js b/module/rdd-sheet-utility.js index 28bca225..383a231a 100644 --- a/module/rdd-sheet-utility.js +++ b/module/rdd-sheet-utility.js @@ -7,7 +7,7 @@ export class RdDSheetUtility { const userRightLevel = game.user.isGM ? CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER : document.getUserLevel(game.user); - mergeObject(options, { + let newOptions = { isGM: game.user.isGM, isOwned: document.parent ? true : false, editable: editable, @@ -15,7 +15,8 @@ export class RdDSheetUtility { isLimited: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.LIMITED, isObserver: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.OBSERVER, isOwner: userRightLevel >= CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER - }); + } + mergeObject(options, newOptions); return options; }