From bf8c15332ec78bcdc498c656c990822bfc93ab30 Mon Sep 17 00:00:00 2001 From: ilkecan <40234257+ilkecan@users.noreply.github.com> Date: Tue, 25 Jun 2024 08:18:57 +0300 Subject: [PATCH] CORPORATION: Don't check access for `getConstants` (#1430) --- src/NetscriptFunctions/Corporation.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NetscriptFunctions/Corporation.ts b/src/NetscriptFunctions/Corporation.ts index 9ba5f4e30..76cc5ea68 100644 --- a/src/NetscriptFunctions/Corporation.ts +++ b/src/NetscriptFunctions/Corporation.ts @@ -588,8 +588,7 @@ export function NetscriptCorporation(): InternalAPI { ...warehouseAPI, ...officeAPI, hasCorporation: () => () => !!Player.corporation, - getConstants: (ctx) => () => { - checkAccess(ctx); + getConstants: () => () => { /* TODO 2.2: possibly just rework the whole corp constants structure to be more readable, and just use * structuredClone to provide it directly to player. * TODO 2.2: Roll product information into industriesData, there's no reason to look up a product separately */