CORPORATION: Don't check access for getConstants (#1430)

This commit is contained in:
ilkecan 2024-06-25 08:18:57 +03:00 committed by GitHub
parent 819f877370
commit bf8c15332e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -588,8 +588,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
...warehouseAPI, ...warehouseAPI,
...officeAPI, ...officeAPI,
hasCorporation: () => () => !!Player.corporation, hasCorporation: () => () => !!Player.corporation,
getConstants: (ctx) => () => { getConstants: () => () => {
checkAccess(ctx);
/* TODO 2.2: possibly just rework the whole corp constants structure to be more readable, and just use /* 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. * 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 */ * TODO 2.2: Roll product information into industriesData, there's no reason to look up a product separately */