gristlabs_grist-core/app/client/widgets
Paul Fitzpatrick ea71312d0e (core) deal with write access for attachments
Summary:
Attachments are a special case for granular access control. A user is now allowed to read a given attachment if they have read access to a cell containing its id. So when a user writes to a cell in an attachment column, it is important that they can only write the ids of cells to which they have access. This diff allows a user to add an attachment id in a cell if:

  * The user already has access to that a attachment via some existing cell, or
  * The user recently updated the attachment, or
  * The attachment change is from an undo/redo of a previous action attributed to that user

Test Plan: Updated tests

Reviewers: georgegevoian, dsagal

Reviewed By: georgegevoian, dsagal

Differential Revision: https://phab.getgrist.com/D3681
2022-11-15 09:52:32 -05:00
..
AbstractWidget.js (core) Adding font options to the style picker 2022-04-07 20:35:03 +02:00
AttachmentsEditor.ts (core) deal with write access for attachments 2022-11-15 09:52:32 -05:00
AttachmentsWidget.css (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
AttachmentsWidget.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
BaseEditor.js Correct spelling mistakes 2022-02-19 09:46:49 +00:00
CellStyle.ts (core) Fixing click-away bug for the cell color widget 2022-10-24 16:21:14 +02:00
CheckBox.css (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
CheckBoxEditor.js (core) Readonly editors 2021-06-17 19:12:16 +02:00
ChoiceEditor.js (core) Fixing bug on a fresh Choice and ChoiceList column 2021-07-21 15:44:10 +02:00
ChoiceListCell.ts (core) Redirect less often in welcomeNewUser 2022-06-06 11:26:49 -07:00
ChoiceListEditor.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
ChoiceListEntry.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
ChoiceTextBox.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
ChoiceToken.ts (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
ConditionalStyle.ts (core) Add info and hover tooltips 2022-10-20 15:17:44 -07:00
CurrencyPicker.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
DateEditor.js (core) Change datepicker in DateEditor to use moment format, show AltText in DateEditor 2021-12-07 11:33:49 -05:00
DateTextBox.js (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
DateTimeEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.js (core) Change datepicker in DateEditor to use moment format, show AltText in DateEditor 2021-12-07 11:33:49 -05:00
DateTimeTextBox.js (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
DiffBox.ts (core) Configure more comprehensive eslint rules for Typescript 2021-04-26 18:54:55 -04:00
DiscussionEditor.ts (core) Add dark mode for comments 2022-10-25 08:19:06 -07:00
EditorButtons.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
EditorPlacement.ts (core) Fix sizing of tracebacks in formula errors, to make it scrollable 2022-07-21 09:56:52 -04:00
EditorTooltip.ts (core) Add a button and a tooltip to Access Rules page item, in View-As mode. 2021-03-08 16:08:21 -05:00
ErrorDom.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.css (core) Comments 2022-10-17 13:38:21 +02:00
FieldBuilder.ts (core) Comments 2022-10-17 13:38:21 +02:00
FieldEditor.ts (core) Comments 2022-10-17 13:38:21 +02:00
FormulaEditor.ts (core) Comments 2022-10-17 13:38:21 +02:00
HyperLinkEditor.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
HyperLinkTextBox.ts (core) Showing links in text cells 2021-10-13 23:22:03 +02:00
NewAbstractWidget.ts (core) Speed up and upgrade build. 2022-06-27 16:10:10 -04:00
NewBaseEditor.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
NTextBox.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
NTextEditor.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
NumericTextBox.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
Reference.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Reference.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
ReferenceEditor.ts (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
ReferenceList.ts (core) Reference and ReferenceList formatters 2022-01-13 18:09:33 +02:00
ReferenceListEditor.ts (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
Spinner.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Spinner.ts (core) Simple localization support and currency selector. 2021-08-26 13:36:49 -07:00
Switch.css (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
TextBox.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
TextEditor.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
TextEditor.js (core) Readonly editors 2021-06-17 19:12:16 +02:00
Toggle.ts (core) When a checkbox is clicked on a new record, set default values determined by linking 2022-11-10 14:34:40 -05:00
TZAutocomplete.ts (core) Improving experience when editing group-by column. 2022-01-18 14:31:31 +01:00
UserType.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
UserTypeImpl.ts (core) When a checkbox is clicked on a new record, set default values determined by linking 2022-11-10 14:34:40 -05:00