mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Don't show org breadcrumbs for trial mode services
Platform admin users can still see the organisation breadcrumbs for trial mode services, but others uses can only see organisation breadcrumbs for live services.
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
<div class="navigation-service">
|
||||
<div class="navigation-service-name">
|
||||
{% if current_service.organisation_id %}
|
||||
{% if current_user.platform_admin or current_user.belongs_to_organisation(current_service.organisation_id) %}
|
||||
{% if current_user.platform_admin or
|
||||
(current_user.belongs_to_organisation(current_service.organisation_id) and current_service.live) %}
|
||||
<a href="{{ url_for('.organisation_dashboard', org_id=current_service.organisation.id) }}">{{ current_service.organisation.name }}</a>
|
||||
<span class="navigation-breadcrumb"></span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user