gristlabs_grist-core/app/client/aclui
Dmitry S ca8ac806db (core) Trim unapplicable permissions bits for column rules, both at parse time, and in UI
Summary:
- UI now trims column rules before saving.
- When rules are loaded, bits that aren't applicable to a resource get ignored.
  This should fix the incorrect behavior in existing docs without a migration.

Test Plan:
- Added test of UI, that it now sends trimmed rules
- Added a unitteset of new trimPermissions() function
- Add test of fixed interpretation of existing rules: now only permission bits
  applicable to a resource get respected. I.e. create/delete/schemaEdit are
  ignored in column rules, and schemaEdit is also ignored in table rules.
- Note that DuplicateTest was affected: updated on the assumption that
  schemaEdit still can't actually apply at a table level.

Reviewers: georgegevoian, paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D4205
2024-03-06 09:46:33 -05:00
..
AccessRules.ts (core) Trim unapplicable permissions bits for column rules, both at parse time, and in UI 2024-03-06 09:46:33 -05:00
ACLColumnList.ts (core) Fix CSS errors related to dark mode 2022-10-05 00:05:57 -07:00
ACLFormulaEditor.ts style: ACL rules has no max-width (#820) 2024-02-15 09:12:19 -05:00
ACLMemoEditor.ts (core) Polish dark mode and remove beta tag 2023-09-21 13:14:48 -04:00
ACLSelect.ts (core) Polish dark mode and remove beta tag 2023-09-21 13:14:48 -04:00
ACLUsers.ts (core) Preserves docPage upon viewAs mode activation, except for acl page 2023-01-25 17:40:54 +01:00
PermissionsWidget.ts (core) Trim unapplicable permissions bits for column rules, both at parse time, and in UI 2024-03-06 09:46:33 -05:00