Don’t give postage choice on service and template

We are moving from the postage being set on the service to being set on
the template. Once a service has been migrated to have the new
permission they should no longer be able to set the postage at a service
level, only at the template level.
This commit is contained in:
Chris Hill-Scott
2019-01-15 12:06:56 +00:00
parent eb3459e416
commit 309de074c3
3 changed files with 38 additions and 11 deletions

View File

@@ -571,7 +571,7 @@ def service_set_letters(service_id):
@user_has_permissions('manage_service')
def service_set_postage(service_id):
if not current_service.has_permission('letter'):
if (not current_service.has_permission('letter')) or current_service.has_permission('choose_postage'):
abort(404)
form = ServicePostageForm(postage=current_service.postage)