Enhance team member permission error message with guidance for key creation (#13443)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: ishaan <ishaan@berri.ai>
This commit is contained in:
Ishaan Jaff
2025-08-08 14:35:06 -07:00
committed by GitHub
co-authored by Cursor Agent ishaan
parent 7f55bbc296
commit d0aa12f3bf
@@ -127,7 +127,7 @@ class TeamMemberPermissionChecks:
route=route, allowed_routes=team_member_permissions
):
raise ProxyException(
message=f"Team member does not have permissions for endpoint: {route}. You only have access to the following endpoints: {team_member_permissions} for team {team_table.team_id}",
message=f"Team member does not have permissions for endpoint: {route}. You only have access to the following endpoints: {team_member_permissions} for team {team_table.team_id}. To create keys for this team, please ask your proxy admin to check the team member permission settings and update the settings to allow team member users to create keys.",
type=ProxyErrorTypes.team_member_permission_error,
param=route,
code=401,