gristlabs_grist-core/app/gen-server
Paul Fitzpatrick ab3cdb62ac (core) make the support account configurable, and allow listing public sites
Summary:
This makes two small tweaks based on a user's questions about sharing
sites publicly for a self-managed installation:

 * The support user `support@getgrist.com` is made configurable with
   `GRIST_SUPPORT_EMAIL`. This came up because only the support user
   can share material with the special "everyone" user. This restriction
   was added to avoid spam.
 * Regardless of public sharing settings, for our SaaS we had
   decided not to list public sites to anonymous users. That is
   somewhat a question of taste, so a `GRIST_LIST_PUBLIC_SITES` flag
   is added to override this choice.

Public sharing isn't in a well polished state, and this diff doesn't
advance that, in fact it adds a new wrinkle :-/

Test Plan: existing tests pass; manual testing

Reviewers: jarek

Reviewed By: jarek

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D3663
2022-10-14 14:23:59 -04:00
..
entity (core) Adding new column in users table "ref" with unique identifier. 2022-10-04 15:19:28 +02:00
lib (core) make the support account configurable, and allow listing public sites 2022-10-14 14:23:59 -04:00
migration (core) Migration that makes user.ref unique and non-nullable 2022-10-12 11:13:00 +02:00
ApiServer.ts (core) make the support account configurable, and allow listing public sites 2022-10-14 14:23:59 -04:00
sqlUtils.ts (core) fix bug where sharing doc with everyone@ as viewer made it unlisted for site viewers 2021-10-28 12:48:31 -04:00