Limit portions of character sheet to Owner/GM only

Hey friends, I'm new so if this isn't the best way to go about asking about system development questions. I'm working on making a system that will involve portions of the character system being only accessible to the owner of the character (and of course the GM). Is there an easy way to check this and setup an if block in my template to not draw the section if you're not the owner of the sheet/the GM? Wanted to make sure I'm not reinventing the wheel before I try to add a way of validating this myself laughing
2 Replies
Farling
Farling•15mo ago
Easy way is to pass the "isGM" flag in the getData function of the sheet class, and use that in your HBS if statement. The Cypher System game system does this for one of the Actor tabs.
OtherwiseJunk
OtherwiseJunkOP•15mo ago
cool, thanks 😄
Want results from more Discord servers?
Add your server