(core) With ?aclUI=1 in the URL, UserManager for documents includes a button to open 'Access Rules'

Summary:
AccessRules class that implements that UI is intended to look vaguely like
detailed rules might look in the future, but only supports the very limited set
we have now.

In addition, UserManager and BillingPage code is separated into their own webpack bundles, to reduce the sizes of primary bundles, and relevant code from them is loaded asynchronously.

Also add two TableData methods: filterRowIds() and findMatchingRowId().

Test Plan: Only tested manually, proper automated tests don't seem warranted for this temporary UI.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2620
This commit is contained in:
Dmitry S
2020-09-29 18:31:47 -04:00
parent 2edf64c132
commit bac070de91
3 changed files with 37 additions and 10 deletions

View File

@@ -75,6 +75,7 @@ export class GranularAccess {
public update() {
this._resources = this._docData.getTable('_grist_ACLResources')!;
this._ownerOnlyTableIds.clear();
this._onlyOwnersCanModifyStructure = false;
for (const res of this._resources.getRecords()) {
const code = String(res.colIds);
if (res.tableId && code === '~o') {