Files
gristlabs_grist-core/app/common
Jordi Gutiérrez Hermoso 54502280de (core) AdminPanel: hide the enterprise toggle in core and grist-ee images
Summary:
In the pure OSS `grist-oss` image, the `ActivationPage` module from
stubs is used, as the `ext` code is completely missing. We can easily
just always return `false` here.

In the case when the `ext` directory exists, this may mean we're in
the standard `grist` image or the `grist-ee` image. The latter is
distinguished by having `GRIST_FORCE_ENABLE_ENTERPRISE` so we check if
that's on, and hide the toggle accordingly if so.

Test Plan:
Use these changes to build the three Docker images
(`grist-oss`, `grist`, and `grist-ee`) and verify that only `grist`
shows the toggle.

Reviewers: jarek

Reviewed By: jarek

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D4321
2024-08-19 15:51:24 -04:00
..
2024-08-14 16:48:36 -04:00
2022-02-19 09:46:49 +00: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
2024-05-22 14:56:53 +02: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-05-19 09:09:19 +02:00
2024-02-22 08:44:25 -05:00
2020-07-21 20:39:10 -04:00
2024-03-21 13:01:25 -04: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
2024-08-14 16:48:36 -04:00
2023-01-16 16:50:42 -08:00
2020-07-21 20:39:10 -04:00
2024-05-22 14:56:53 +02: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-08-14 16:48:36 -04:00
2020-07-21 20:39:10 -04:00
2020-09-29 18:57:56 -04:00
2024-07-23 11:49:23 -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