Browse Source

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

bc Wong 14 years ago
parent
commit
6e78daa4e9
1 changed files with 1 additions and 1 deletions
  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>
     <body>
       <div class="toolbar">
       <div class="toolbar">
         <a href="${url('shell.views.index')}"><img src="/shell/static/art/shell.png" class="shell_icon"/></a>
         <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">
           <div class="nav_menu">
           % if len(shells) == 1:
           % if len(shells) == 1:
             % if shells[0]["exists"]:
             % if shells[0]["exists"]: