Skip to content

Commit

Permalink
Update teams.$uuid.PATCH.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jimniels committed Jan 9, 2025
1 parent 4b6b397 commit 310dcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quadratic-api/src/routes/v0/teams.$uuid.PATCH.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function handler(req: RequestWithUser, res: Response<ApiTypes['/v0/teams/:
throw new ApiError(403, 'User does not have permission to edit this team.');
}
if (settings && !permissions.includes('TEAM_MANAGE')) {
throw new ApiError(403, 'User does not have permission to edit this team’s preferences.');
throw new ApiError(403, 'User does not have permission to edit this team’s settings.');
}

// Validate exisiting data in the db
Expand Down

0 comments on commit 310dcdf

Please sign in to comment.