(core) Add getAclResources method for making all tables/columns available when editing ACL rules

Summary:
The goal is that those who can edit ACL rules can create or change rules for
any resource, even if the rules block their own ability to see the resource.

Test Plan: Added a browser test, and a server test for who can call the new method.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2703
This commit is contained in:
Dmitry S
2021-01-14 11:10:42 -05:00
parent ffe4a34335
commit d8e742aa0d
6 changed files with 50 additions and 19 deletions

View File

@@ -54,6 +54,7 @@ export class DocComm extends Disposable implements ActiveDocAPI {
public reloadDoc = this._wrapMethod("reloadDoc");
public fork = this._wrapMethod("fork");
public checkAclFormula = this._wrapMethod("checkAclFormula");
public getAclResources = this._wrapMethod("getAclResources");
public changeUrlIdEmitter = this.autoDispose(new Emitter());