themes: only check password for uid=0 pages, nobody cannot read shadow (#426)
[project/luci.git] / themes / bootstrap / luasrc / view / themes / bootstrap / header.htm
index 60c7a6e..33e2e48 100644 (file)
@@ -190,7 +190,7 @@ You may obtain a copy of the License at
   </header>
 
 
-<%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
+<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
 <div class="container">
        <div class="alert-message warning">
                <h4><%:No password set!%></h4>