quick fixes

This commit is contained in:
yohlo
2025-10-06 13:33:25 -05:00
parent 45db283bc5
commit 49bbd1611c
4 changed files with 12 additions and 13 deletions

View File

@@ -37,9 +37,9 @@ export const createTeam = createServerFn()
const userId = context.userAuthId;
const isAdmin = context.roles.includes("Admin");
if (!isAdmin && !data.players.includes(userId)) {
throw new Error("You can only create teams that include yourself as a player");
}
//if (!isAdmin && !data.players.includes(userId)) {
// throw new Error("You can only create teams that include yourself as a player");
//}
logger.info("Creating team", { name: data.name, userId, isAdmin });
return pbAdmin.createTeam(data);