Only show Workspaces in the side nav if the current user has a workspace
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
{"label":"New Request", "href":url_for("requests.requests_form_new", screen=1), "icon": "plus", "active": g.matchesPath('/requests/new')},
|
||||
]
|
||||
) }}
|
||||
{{ SidenavItem("Workspaces", href="/workspaces", icon="cloud", active=g.matchesPath('/workspaces')) }}
|
||||
|
||||
{% if g.current_user.workspace_roles %}
|
||||
{{ SidenavItem("Workspaces", href="/workspaces", icon="cloud", active=g.matchesPath('/workspaces')) }}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user