Remove choose_postage feature flag so everyone can choose postage

This commit is contained in:
Pea Tyczynska
2019-02-04 16:55:00 +00:00
parent 02ff79d0dd
commit 64aff0ba05
3 changed files with 6 additions and 18 deletions

View File

@@ -829,7 +829,7 @@ def set_template_sender(service_id, template_id):
@user_has_permissions('manage_templates')
def edit_template_postage(service_id, template_id):
template = service_api_client.get_service_template(service_id, template_id)['data']
if template["template_type"] != "letter" or not current_service.has_permission("choose_postage"):
if template["template_type"] != "letter":
abort(404)
form = LetterTemplatePostageForm(**template)
if form.validate_on_submit():

View File

@@ -50,9 +50,7 @@
</div>
<div class="column-whole template-container">
{% if current_user.has_permissions('manage_templates') and template.template_type == 'letter' %}
{% if current_service.has_permission("choose_postage") %}
<a href="{{ url_for(".edit_template_postage", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-postage">Edit</a>
{% endif %}
<a href="{{ url_for(".edit_template_postage", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-postage">Edit</a>
<a href="{{ url_for(".edit_service_template", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-body">Edit</a>
<a href="{{ url_for(".set_template_sender", service_id=current_service.id, template_id=template.id) }}" class="edit-template-link-letter-contact">Edit</a>
{% endif %}