Skip to content

Commit

Permalink
Restrict updateTeam access.
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenGong12 authored Feb 10, 2025
1 parent 17d5a2b commit 299f52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/ClientApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ export default class ClientApi extends NextApiTemplate<ApiDependencies> {
Team
>({
isAuthorized: (req, res, deps, [newValues, teamId]) =>
AccessLevels.IfOnTeam(req, res, deps, teamId),
AccessLevels.IfTeamOwner(req, res, deps, teamId),
handler: async (
req,
res,
Expand Down

0 comments on commit 299f52e

Please sign in to comment.