Skip to content

Commit 9593fef

Browse files
jankeromnesroboquat
authored andcommitted
[server] Allow team members (non-owners) to read the team's usage-based subscription ID
1 parent 16eacba commit 9593fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
19071907
async findStripeSubscriptionIdForTeam(ctx: TraceContext, teamId: string): Promise<string | undefined> {
19081908
const user = this.checkAndBlockUser("findStripeSubscriptionIdForTeam");
19091909
await this.ensureIsUsageBasedFeatureFlagEnabled(user);
1910-
await this.guardTeamOperation(teamId, "update");
1910+
await this.guardTeamOperation(teamId, "get");
19111911
try {
19121912
const customer = await this.stripeService.findCustomerByTeamId(teamId);
19131913
if (!customer?.id) {

0 commit comments

Comments
 (0)