Improved hexagon hb

This commit is contained in:
ThaumRystra
2024-04-13 11:57:29 +02:00
parent 08640f2bf2
commit 7b662a647a
4 changed files with 151 additions and 28 deletions

View File

@@ -12,9 +12,9 @@ export function assertUserInTabletop(tabletopId, userId) {
fields: { gameMasters: 1, players: 1 }
});
assertTabletopExists(tabletop);
if (tabletop.gameMasters.includes(userId) && !tabletop.players.includes(userId)) {
if (!tabletop.gameMasters.includes(userId) && !tabletop.players.includes(userId)) {
throw new Meteor.Error('Not in tabletop',
'The user is not the gamemaster or a player in the given tabletop');
'The user is not a game master or a player in the given tabletop');
}
}