Ensure restricted service are respected by tasks:

This is checked on 3rd party API calls, but jobs (CSV files) were able expected to only allow valid files.

Change in tack means we want to have restricted notification failures reported in the UI.
This commit is contained in:
Martyn Inglis
2016-03-03 12:05:18 +00:00
parent 26120e4e7f
commit 800afc9e44
4 changed files with 171 additions and 43 deletions

View File

@@ -207,7 +207,7 @@ class VerifyCode(db.Model):
return check_hash(cde, self._code)
NOTIFICATION_STATUS_TYPES = ['sent', 'failed']
NOTIFICATION_STATUS_TYPES = ['sent', 'failed', 'failed - restricted service']
class Notification(db.Model):