Only added 'Get Started' if you have the appropriate permissions.

This commit is contained in:
Nicholas Staples
2016-03-21 14:11:51 +00:00
parent 774b16b7a8
commit dad5bf9e00

View File

@@ -25,6 +25,7 @@
</ul> </ul>
{% if not template_count and not jobs %} {% if not template_count and not jobs %}
{% if current_user.has_permissions(['manage_templates', 'send_texts', 'send_emails', 'send_letters'], or_=True) %}
{% call banner_wrapper(subhead='Get started', type="tip") %} {% call banner_wrapper(subhead='Get started', type="tip") %}
<ol> <ol>
{% if current_user.has_permissions(['manage_templates']) %} {% if current_user.has_permissions(['manage_templates']) %}
@@ -39,6 +40,7 @@
{% endif %} {% endif %}
</ol> </ol>
{% endcall %} {% endcall %}
{% endif %}
{% elif not jobs %} {% elif not jobs %}
{% call banner_wrapper(subhead='Next step', type="tip") %} {% call banner_wrapper(subhead='Next step', type="tip") %}
{% if current_user.has_permissions(['send_texts', 'send_emails', 'send_letters']) %} {% if current_user.has_permissions(['send_texts', 'send_emails', 'send_letters']) %}