Skip to content

Commit

Permalink
fix: secure league class + group update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
brownben committed Aug 11, 2023
1 parent 7565407 commit e7986d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/routes/leagues.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ async def update_league_class(
description="Name of the class",
example="Long",
),
authentication: bool = Depends(require_authentication),
) -> Message:
success = await LeagueClasses.update(league_name, class_name, cls)

Expand Down Expand Up @@ -416,6 +417,7 @@ async def update_league_group(
description="Name of the group",
example="Sprint",
),
authentication: bool = Depends(require_authentication),
) -> Message:
success = await LeagueGroups.update(league_name, group_name, group)

Expand Down

1 comment on commit e7986d2

@vercel
Copy link

@vercel vercel bot commented on e7986d2 Aug 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

munro – ./

munro.vercel.app
munro-brownben.vercel.app
munroleagues.com
munro-git-main-brownben.vercel.app

Please sign in to comment.