zulip/corporate/views
Alex Vandiver 7613928e8a apps: Fix redirect from /apps -> https://zulip.com/apps/.
When this code was moved from being in zerver in 21a2fd482e, it kept
the `if ZILENCER_ENABLED` blocks.  Since ZILENCER and CORPORATE are
generally either both on or both off, the if statement became
mostly-unnecessary.

However, because tests cannot easily remove elements from
INSTALLED_APPS and re-determine URL resolution, we switch to checking
`if CORPORATE_ENABLED` as a guard, and leave these in-place.

The other side effect of this is that with e54ded49c4, most Zulip
deployments started to 404 requests for `/apps` instead of redirecting
them to `https://zulip.com/apps/` since they no longer had any path
configured for `/apps`.  Unfortunately, this URL is in widespread use
in the app (e.g. in links from the Welcome Bot), so we should ensure
that it does successfully redirect.

Add the `/apps` path to `zerver`, but only if not CORPORATE_ENABLED,
so the URLs do not overlap.
2022-12-30 17:47:16 -08:00
..
__init__.py
billing_page.py docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00
event_status.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
portico.py apps: Fix redirect from /apps -> https://zulip.com/apps/. 2022-12-30 17:47:16 -08:00
session.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
support.py corporate: Add contact support page. 2021-10-01 17:30:01 -07:00
upgrade.py demo-orgs: Disable billing and upgrade for demo organizations. 2022-08-29 11:43:45 -07:00
webhook.py webhook: Do not allow None default for headers. 2022-07-15 14:00:56 -07:00