Shoraky commited on
Commit
fddeaff
·
1 Parent(s): 61f39da

docs: correct roster access comment

Browse files
Files changed (1) hide show
  1. src/server.ts +1 -2
src/server.ts CHANGED
@@ -444,8 +444,7 @@ app.delete("/api/players/:playerId", async (req, res, next) => {
444
  } catch (error) { next(error); }
445
  });
446
 
447
- // Roster overview is shared for viewing; player writes and analysis choices
448
- // remain limited to the signed-in player's own roster.
449
  app.get("/api/players-overview", async (req, res, next) => {
450
  try {
451
  const current = await authenticatedUser(req, res);
 
444
  } catch (error) { next(error); }
445
  });
446
 
447
+ // Non-admin roster reads are scoped to the signed-in player's own roster.
 
448
  app.get("/api/players-overview", async (req, res, next) => {
449
  try {
450
  const current = await authenticatedUser(req, res);