From 5bddc548de3a503aec57eb64c630925a601be7a7 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 3 Jan 2023 13:26:44 +0100 Subject: [PATCH] Le GR a toujours le droit de voir Change-Id: I3b58fddc3ce6765e6dcf59dc20d81cdadf381761 --- module/actor/base-actor-sheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor/base-actor-sheet.js b/module/actor/base-actor-sheet.js index 6cfc9e7e..389bbf54 100644 --- a/module/actor/base-actor-sheet.js +++ b/module/actor/base-actor-sheet.js @@ -31,7 +31,7 @@ export class RdDBaseActorSheet extends ActorSheet { Monnaie.validerMonnaies(this.actor.itemTypes['monnaie']); this.actor.recompute(); - const userRightLevel = this.actor.getUserLevel(game.user) + const userRightLevel = game.user.isGM ? CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER : this.actor.getUserLevel(game.user) const options = duplicate(this.options); mergeObject(options, { isGM: game.user.isGM,