Skip to content

Commit 185fcfa

Browse files
committed
fix issues with merge
1 parent a38f2c4 commit 185fcfa

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/shared/src/entitlements.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ const entitlements = [
3636
"public-access",
3737
"multi-tenancy",
3838
"sso",
39-
"code-nav"
39+
"code-nav",
40+
"audit"
4041
] as const;
4142
export type Entitlement = (typeof entitlements)[number];
4243

4344
const entitlementsByPlan: Record<Plan, Entitlement[]> = {
4445
oss: [],
4546
"cloud:team": ["billing", "multi-tenancy", "sso", "code-nav"],
46-
"self-hosted:enterprise": ["search-contexts", "sso", "code-nav"],
47-
"self-hosted:enterprise-unlimited": ["search-contexts", "public-access", "sso", "code-nav"],
47+
"self-hosted:enterprise": ["search-contexts", "sso", "code-nav", "audit"],
48+
"self-hosted:enterprise-unlimited": ["search-contexts", "public-access", "sso", "code-nav", "audit"],
4849
// Special entitlement for https://demo.sourcebot.dev
4950
"cloud:demo": ["public-access", "code-nav", "search-contexts"],
5051
} as const;

packages/web/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { createTransport } from 'nodemailer';
1313
import { render } from '@react-email/render';
1414
import MagicLinkEmail from './emails/magicLinkEmail';
1515
import bcrypt from 'bcryptjs';
16-
import { getSSOProviders } from '@/ee/sso/sso';
16+
import { getSSOProviders } from '@/ee/features/sso/sso';
1717
import { hasEntitlement } from '@sourcebot/shared';
1818
import { onCreateUser } from '@/lib/authUtils';
1919
import { getAuditService } from '@/ee/features/audit/factory';

packages/web/src/initialize.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ const pruneOldGuestUser = async () => {
159159
}
160160

161161
const validateEntitlements = () => {
162-
const entitlements = getEntitlements();
163-
164162
if (env.SOURCEBOT_EE_AUDIT_LOGGING_ENABLED === 'true') {
165163
if (!hasEntitlement('audit')) {
166164
logger.error(`Audit logging is enabled but your license does not include the audit logging entitlement. Please reach out to us to enquire about upgrading your license.`);

0 commit comments

Comments
 (0)