Give new services the upload letters permission

This will switch on this feature for new services.

After this we will:
- give existing services this permission with a database migration
- remove this permission from the codebase entirely so that everyone has
  this feature and can’t switch it off
This commit is contained in:
Chris Hill-Scott
2020-02-25 13:56:39 +00:00
parent 42f02c8c24
commit b3c9680487
3 changed files with 12 additions and 9 deletions

View File

@@ -48,6 +48,7 @@ from app.models import (
NOTIFICATION_PERMANENT_FAILURE,
SMS_TYPE,
LETTER_TYPE,
UPLOAD_LETTERS,
)
from app.utils import email_address_is_nhs, escape_special_characters, get_london_midnight_in_utc, midnight_n_days_ago
@@ -56,6 +57,7 @@ DEFAULT_SERVICE_PERMISSIONS = [
EMAIL_TYPE,
LETTER_TYPE,
INTERNATIONAL_SMS_TYPE,
UPLOAD_LETTERS,
]