Explorar o código

HUE-570. shell error when user has no access to any individual shell

bc Wong %!s(int64=14) %!d(string=hai) anos
pai
achega
6e78daa4e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/shell/src/shell/templates/shared_components.mako

+ 1 - 1
apps/shell/src/shell/templates/shared_components.mako

@@ -11,7 +11,7 @@ from django.template.defaultfilters import urlencode, escape
     <body>
       <div class="toolbar">
         <a href="${url('shell.views.index')}"><img src="/shell/static/art/shell.png" class="shell_icon"/></a>
-        % if toolbar:
+        % if toolbar and shells:
           <div class="nav_menu">
           % if len(shells) == 1:
             % if shells[0]["exists"]: