gristlabs_grist-core/app/server/lib/NullSandbox.ts
George Gevoian 36f3fd0120 (core) Fix owner view access to snapshots
Summary:
Owners weren't able to access snapshots if access rules
that denied access to non-owners existed. The backend
was lowering snapshot document access to "viewers" as
part of implementing read-only behavior; this is now done
in the client, with document access for snapshots now
accurately reflecting the user's trunk access.

Additionally, sandboxes are no longer created for snapshots,
and background intervals aren't started for snapshots.

Test Plan: Browser test.

Reviewers: jarek, paulfitz

Reviewed By: jarek, paulfitz

Differential Revision: https://phab.getgrist.com/D3849
2023-04-17 00:16:59 -04:00

16 lines
330 B
TypeScript

import {ISandbox} from 'app/server/lib/ISandbox';
export class NullSandbox implements ISandbox {
public async shutdown(): Promise<unknown> {
return undefined;
}
public async pyCall(_funcName: string, ..._varArgs: unknown[]) {
return undefined;
}
public async reportMemoryUsage() {
return undefined;
}
}