mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
36f3fd0120
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
16 lines
330 B
TypeScript
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;
|
|
}
|
|
}
|