Log in

View Full Version : There is a function to test if current user is GM?



Xarxus
December 13th, 2020, 18:34
As in the title, I need to know if the current user is the GM. Is there a way?
Perhaps an attribute of user?

Ty all

Zacchaeus
December 13th, 2020, 18:37
Try here https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644683/User

Xarxus
December 13th, 2020, 18:48
Try here https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644683/User

Ty

I found this --> User.isHost()
The one who is hosting is always the GM, is it right?

Ty again

Zacchaeus
December 13th, 2020, 18:56
Yes.