Only show ‘back to service name’ link if signed in

When you’re not signed in you can still have a service in your session.
But there’s no point trying to get to its dashboard until you’re signed
in – you’ll just be sent back to the ‘sign in’ page.
This commit is contained in:
Chris Hill-Scott
2018-05-09 10:48:38 +01:00
parent 5f4d9a60da
commit f9421789d0
2 changed files with 16 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
{% block fullwidth_content %}
<div id="content">
{% if current_service %}
{% if current_service and current_user.is_authenticated %}
<div class="navigation-service">
<a href="{{ url_for('main.show_accounts_or_dashboard') }}">Back to {{ current_service.name }}</a>
</div>