gristlabs_grist-core/app
Paul Fitzpatrick 95cc2eb282 (core) read document as owner in pre-fork mode, if have sufficient access to it
Summary:
This tweaks pre-fork mode to make the user's experience a bit more seamless.
Pre-fork mode is where the user has opened a document with intent to
fork it, but actual forking (with allocation of a new document id)
is postponed until they make their first change.

The tweak makes the user an owner for granular access purposes, if
forking is permitted.  So data visible only to owners because of
access rules will be visible to them.  As always, any edits would
go to a separate new copy.

A remaining tricky corner is what to do about "View As" functionality
on forks.  Fork sharing cannot be controlled, so the "Users -> View As"
functionality isn't available.  Perhaps the "Users" button on a fork
could encourage doing a save-copy and inviting users, or offer some
dummy users?  In any case, this diff doesn't change anything with
that corner.

Test Plan: added test

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2931
2021-07-21 14:52:31 -04:00
..
client (core) Export to Excel and Send to drive 2021-07-21 16:36:00 +02:00
common (core) Export to Excel and Send to drive 2021-07-21 16:36:00 +02:00
gen-server (core) Export to Excel and Send to drive 2021-07-21 16:36:00 +02:00
plugin (core) Showing censored values as a grey cell 2021-06-07 13:11:41 +02:00
server (core) read document as owner in pre-fork mode, if have sufficient access to it 2021-07-21 14:52:31 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00