Skip to content

Commit a650ae7

Browse files
author
Andrew Farries
committed
Remove ensureStripeApiIsAllowed calls
Also the `guardTeamOperation` call as both are not needed given the `guardCostCenterAccess` call below.
1 parent 6d9c770 commit a650ae7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

components/server/ee/src/workspace/gitpod-server-impl.ts

-9
Original file line numberDiff line numberDiff line change
@@ -2246,15 +2246,6 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
22462246
}
22472247

22482248
const user = this.checkAndBlockUser("setUsageLimit");
2249-
switch (attrId.kind) {
2250-
case "team":
2251-
const team = await this.guardTeamOperation(attrId.teamId, "update");
2252-
await this.ensureStripeApiIsAllowed({ team });
2253-
break;
2254-
case "user":
2255-
await this.ensureStripeApiIsAllowed({ user });
2256-
break;
2257-
}
22582249
await this.guardCostCenterAccess(ctx, user.id, attrId, "update");
22592250

22602251
const response = await this.usageService.getCostCenter({ attributionId });

0 commit comments

Comments
 (0)