Skip to content

Commit 6e48a14

Browse files
geroplroboquat
authored andcommitted
TEST COMMIT
1 parent 5f0c18d commit 6e48a14

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

components/server/ee/src/user/user-service.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
*/
66

77
import { UserService, CheckSignUpParams, CheckTermsParams } from "../../../src/user/user-service";
8-
import { User, WorkspaceTimeoutDuration, WORKSPACE_TIMEOUT_EXTENDED, WORKSPACE_TIMEOUT_EXTENDED_ALT, WORKSPACE_TIMEOUT_DEFAULT_LONG, WORKSPACE_TIMEOUT_DEFAULT_SHORT } from "@gitpod/gitpod-protocol";
8+
import {
9+
User,
10+
WorkspaceTimeoutDuration,
11+
WORKSPACE_TIMEOUT_EXTENDED,
12+
WORKSPACE_TIMEOUT_EXTENDED_ALT,
13+
WORKSPACE_TIMEOUT_DEFAULT_LONG,
14+
WORKSPACE_TIMEOUT_DEFAULT_SHORT,
15+
} from "@gitpod/gitpod-protocol";
916
import { inject } from "inversify";
1017
import { LicenseEvaluator } from "@gitpod/licensor/lib";
1118
import { Feature } from "@gitpod/licensor/lib/api";
@@ -78,7 +85,8 @@ export class UserServiceEE extends UserService {
7885

7986
// 1. check the license
8087
const userCount = await this.userDb.getUserCount(true);
81-
if (!this.licenseEvaluator.hasEnoughSeats(userCount)) {
88+
if (userCount > -1) {
89+
//!this.licenseEvaluator.hasEnoughSeats(userCount)) {
8290
const msg = `Maximum number of users permitted by the license exceeded`;
8391
throw AuthException.create("Cannot sign up", msg, { userCount, params });
8492
}

0 commit comments

Comments
 (0)