mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user