Check for precompiled letter permission in the post notification

This commit is contained in:
Alexey Bezhan
2018-02-23 13:49:16 +00:00
parent 8971a5adce
commit bef91bcd99
2 changed files with 21 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ from app.models import (
SMS_TYPE,
EMAIL_TYPE,
LETTER_TYPE,
# PRECOMPILED_LETTER,
PRECOMPILED_LETTER,
PRIORITY,
KEY_TYPE_TEST,
KEY_TYPE_TEAM,
@@ -69,7 +69,7 @@ def post_precompiled_letter_notification():
# Check both permission to send letters and permission to send pre-compiled PDFs
check_service_has_permission(LETTER_TYPE, authenticated_service.permissions)
# check_service_has_permission(PRECOMPILED_LETTER, authenticated_service.permissions)
check_service_has_permission(PRECOMPILED_LETTER, authenticated_service.permissions)
check_rate_limiting(authenticated_service, api_user)