Skip to content

Commit

Permalink
chore: fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
scotwells committed Jan 18, 2025
1 parent 5757fdc commit 0d85fdd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (o *CoreControlPlaneAuthorizer) Authorize(ctx context.Context, attributes a
if orgIDs, set := attributes.GetUser().GetExtra()[webhook.OrganizationIDExtraKey]; !set {
return authorizer.DecisionDeny, "", fmt.Errorf("extra '%s' is required by core control plane authorizer", webhook.OrganizationIDExtraKey)
} else if len(orgIDs) > 1 {
return authorizer.DecisionDeny, "", fmt.Errorf("extra '%s' only supports one value, but multiple were provided: %v", orgIDs)
return authorizer.DecisionDeny, "", fmt.Errorf("extra '%s' only supports one value, but multiple were provided: %v", webhook.OrganizationIDExtraKey, orgIDs)
} else {
organizationID = orgIDs[0]
}
Expand Down

0 comments on commit 0d85fdd

Please sign in to comment.