Ghost/core/server/api/canary
Kevin Ansfield b08b95085e
Added default email recipients settings (#12925)
refs https://github.com/TryGhost/Team/issues/496

We want to give more control over the default selection of email recipients when publishing a post, to do that we need somewhere to store those settings. These settings are site-wide and intended for use by admins to control the default editor behaviour for all staff users. They _do not_ control API behaviour, if you want to send email when publishing via the API it's still necessary to explicitly opt in to that using the `?email_recipients_filter=` query param.

- new `editor` settings group to indicate that these settings only affect the UI rather than the API
- `editor_default_email_recipients` controls overall behaviour, string/enum with these allowed values:
  - `'disabled'`: no option to send email is shown in the editor's publishing dropdown
  - `'visibility'`: (default) selected member segment is dynamic and matches the post visibility filter
  - `'filter'`: specific member filter defined in `editor_default_email_recipients_filter` setting
- `editor_default_email_recipients_filter` is an NQL string for selecting members, used when `editor_default_email_recipients` is set to `'filter'`
  - default value is `'all'`
  - the segment string can be any valid NQL filter with the additional special-case values of `'all'` and `'none'`
2021-05-07 09:30:57 +01:00
..
utils Added default email recipients settings (#12925) 2021-05-07 09:30:57 +01:00
actions.js Updated canary actions endpoint 2019-08-14 17:40:36 +08:00
authentication.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
authors-public.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
config.js Changed Config API response structure 2021-03-04 21:16:20 +00:00
db.js Refactored exporter to use "allowlist" table filtering 2021-03-25 16:46:56 +13:00
email-preview.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
email.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
identities.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
images.js Removed global.Promise override (#12182) 2020-11-04 10:55:47 +00:00
index.js Added Products API to Admin API 2021-04-20 13:04:51 +01:00
integrations.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
invites.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
labels.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
mail.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
members.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
memberSigninUrls.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
membersStripeConnect.js Supported test mode in members_stripe_connect API 2020-06-10 14:06:57 +02:00
notifications.js Fixed update check tests 2021-01-14 18:30:09 +13:00
oembed.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
pages-public.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
pages.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
posts-public.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
posts.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
preview.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
products.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
redirects.js Added .yaml format support in redirects configuration (#12187) 2020-11-04 12:08:32 +13:00
roles.js 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30
schedules.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
session.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
settings-public.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
settings.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
site.js Exposed a read-only public oauth enabled/disabled configuration 2021-04-27 20:56:10 +02:00
slack.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
slugs.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
snippets.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
tags-public.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
tags.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
themes.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
users.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
webhooks.js Moved i18n to shared 2021-05-04 13:03:38 +01:00