Files
gristlabs_grist-core/app/common
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
..
2024-01-24 02:18:03 -08:00
2022-02-19 09:46:49 +00:00
2024-01-12 11:58:12 -08:00
2021-09-16 10:06:04 -04:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2020-07-21 20:39:10 -04:00
2022-05-09 21:44:57 +02:00
2020-07-21 20:39:10 -04:00
2024-02-22 08:44:25 -05:00
2020-07-21 20:39:10 -04:00
2024-02-26 07:48:17 -05:00
2022-08-25 12:38:36 -07:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2023-01-16 16:50:42 -08:00
2020-07-21 20:39:10 -04:00
2023-08-29 09:19:52 +02:00
2022-03-12 14:34:46 -08:00
2020-07-21 20:39:10 -04:00
2024-01-24 02:18:03 -08:00
2024-01-24 02:18:03 -08:00
2020-07-21 20:39:10 -04:00
2020-09-29 18:57:56 -04:00
2021-07-20 15:17:03 +02:00
2023-03-16 17:37:24 -04:00
2024-01-19 10:34:03 +01:00