Spaces:
Running
Running
docs: correct roster access comment
Browse files- 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 |
-
//
|
| 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);
|