mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Fix logic around team on navigation
In the navigation you should see either: - manage team - view team members This depends on which permissions you have. You shouldn’t see both at once. There was a bug which meant you could see both. This commit fixes that bug. https://www.pivotaltracker.com/story/show/116608291
This commit is contained in:
@@ -23,8 +23,7 @@
|
|||||||
<li><a href="{{ url_for('.manage_users', service_id=service_id) }}">Manage team</a></li>
|
<li><a href="{{ url_for('.manage_users', service_id=service_id) }}">Manage team</a></li>
|
||||||
<li><a href="{{ url_for('.service_settings', service_id=service_id) }}">Manage settings</a></li>
|
<li><a href="{{ url_for('.service_settings', service_id=service_id) }}">Manage settings</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% elif current_user.has_permissions(['view_activity']) %}
|
||||||
{% if current_user.has_permissions(['view_activity']) %}
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ url_for('.manage_users', service_id=service_id) }}">View team members</a></li>
|
<li><a href="{{ url_for('.manage_users', service_id=service_id) }}">View team members</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user