فهرست منبع

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

bc Wong 14 سال پیش
والد
کامیت
6e78daa4e9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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"]: