浏览代码

HUE-7579 [frontend] Fix anonymous user render of login page

Enrico Berti 8 年之前
父节点
当前提交
ca9dd93
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      desktop/core/src/desktop/templates/common_header.mako

+ 2 - 0
desktop/core/src/desktop/templates/common_header.mako

@@ -189,7 +189,9 @@ if USE_NEW_EDITOR.get():
   <%namespace name="charting" file="/charting.mako" />
   <%namespace name="charting" file="/charting.mako" />
   ${ charting.import_charts() }
   ${ charting.import_charts() }
 
 
+  % if user.is_authenticated():
   ${ koComponents.all() }
   ${ koComponents.all() }
+  %endif
 
 
   ${ commonHeaderFooterComponents.header_pollers(user, is_s3_enabled, apps) }
   ${ commonHeaderFooterComponents.header_pollers(user, is_s3_enabled, apps) }