MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / isEnabledForUser

Function isEnabledForUser

apps/web/src/lib/code-indexing/util.ts:6–13  ·  view source on GitHub ↗
(user: User)

Source from the content-addressed store, hash-verified

4import { StaffRequestRefusal } from '@kilocode/web-shared/routers/organizations/utils';
5import type { User } from '@kilocode/db/schema';
6import type { TRPCContext } from '@kilocode/web-shared/lib/trpc/init';
7import { sql } from 'drizzle-orm';
8
9const manuallyEnabledUsers = new Set(
10 CODE_INDEXING_ENABLED_USER_IDS.split(',')
11 .map(userId => userId.trim())
12 .filter(userId => userId.length > 0)
13);
14
15/** Whether the configured list enables the personal code index for this account. */
16export function isManuallyEnabledForUser(userId: string): boolean {

Callers 3

PersonalAppSidebarFunction · 0.90
UserCodeIndexingPageFunction · 0.90
GETFunction · 0.90

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected