FIX - LAUNCHER: sync Codex Agent API entitlement
This commit is contained in:
@@ -520,7 +520,7 @@ export function LauncherApp() {
|
||||
}
|
||||
|
||||
function handleSetServiceModuleEntitlement(command: SetServiceModuleEntitlementCommand) {
|
||||
const entitlementKey = `${command.clientId}:${command.userId}:${command.serviceId}:${command.moduleId}`;
|
||||
const entitlementKey = `${command.userId}:${command.serviceId}:${command.moduleId}`;
|
||||
|
||||
if (pendingServiceModuleEntitlements[entitlementKey]) {
|
||||
return;
|
||||
|
||||
@@ -4826,14 +4826,13 @@ function accessCellKey(userId: string, serviceId: string): string {
|
||||
return `${userId}:${serviceId}`;
|
||||
}
|
||||
|
||||
function serviceModuleEntitlementKey(clientId: string, userId: string, serviceId: string, moduleId: ServiceModuleId): string {
|
||||
return `${clientId}:${userId}:${serviceId}:${moduleId}`;
|
||||
function serviceModuleEntitlementKey(_clientId: string, userId: string, serviceId: string, moduleId: ServiceModuleId): string {
|
||||
return `${userId}:${serviceId}:${moduleId}`;
|
||||
}
|
||||
|
||||
function hasServiceModuleEntitlement(data: LauncherData, clientId: string, userId: string, serviceId: string, moduleId: ServiceModuleId): boolean {
|
||||
function hasServiceModuleEntitlement(data: LauncherData, _clientId: string, userId: string, serviceId: string, moduleId: ServiceModuleId): boolean {
|
||||
return data.serviceModuleEntitlements.some(
|
||||
(entitlement) =>
|
||||
entitlement.clientId === clientId &&
|
||||
entitlement.userId === userId &&
|
||||
entitlement.serviceId === serviceId &&
|
||||
entitlement.moduleId === moduleId &&
|
||||
|
||||
Reference in New Issue
Block a user