#64 : Blocage de l'édition des compétences pour les joueurs
This commit is contained in:
parent
e18bb4c832
commit
aeb7d7f8f4
@ -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;
|
||||
}
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user