#64 : Blocage de l'édition des compétences pour les joueurs

This commit is contained in:
sladecraven 2020-12-07 09:29:25 +01:00
parent e18bb4c832
commit aeb7d7f8f4
2 changed files with 8 additions and 1 deletions

View File

@ -33,6 +33,7 @@ export class RdDItemSheet extends ItemSheet {
let data = super.getData();
data.bonusCaseList = RdDItemSort.getBonusCaseList(data, true);
data.isGM = game.user.isGM; // Pour vérouiller certaines éditions
return data;
}

View File

@ -2,7 +2,13 @@
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<h1 class="charname">
{{#if isGM}}
<input name="name" type="text" value="{{item.name}}" placeholder="Name"/>
{{else}}
{{item.name}}
{{/if}}
</h1>
</div>
</header>