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,
...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 */