Issue with non admin user not getting same styling

Topics: Administration, General
Oct 25, 2013 at 10:11 PM
We are somewhat new to orchard. We have a site that requires login to access. When logging in using the site admin id, the home page renders properly. We created a "read only" id and when we login in using that id. The home page styling is not correct. the rest of the site is fine, just the home page is wrong.

if I update the role for the read only id to include site owners permissions and refresh the page, it styles correctly.

any help or direction would be greatly appreciated.
Developer
Oct 26, 2013 at 8:44 AM
Edited Oct 26, 2013 at 8:44 AM
Where is the style sheet being loaded from? Perhaps the web.config file in that same folder contains a rule to only server content to authenticated users.
E.g. the following would cause the effect you described:
<system.web> 
   <authorization>
      <deny users="?"/>  <!-- Will deny anonymous users. -->
   </authorization> 
</system.web>
Oct 28, 2013 at 6:47 PM
The issue appears to be related to Shape Tracing.

When I have Shape Tracing turned on , I get the proper CSS files and styling.

( This is the top of the home page that renders correctly when shape tracing is on.)

<!DOCTYPE html>
<html lang="en-US" class="static containers">
<head>
<meta charset="utf-8" />
<title>GCI - Services</title> 
<link href="/Modules/Orchard.DesignerTools/Styles/orchard-designertools-shapetracing.css" rel="stylesheet" type="text/css" />
<link href="/Modules/Orchard.DesignerTools/styles/CodeMirror/codemirror.css" rel="stylesheet" type="text/css" />
<link href="/Modules/Orchard.DesignerTools/styles/CodeMirror/razor.css" rel="stylesheet" type="text/css" />
<link href="/Modules/Orchard.DesignerTools/styles/CodeMirror/javascript.css" rel="stylesheet" type="text/css" />
<link href="/Modules/Orchard.DesignerTools/styles/CodeMirror/css.css" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Lobster&subset=latin" rel="stylesheet" type="text/css" />
<link href="/Themes/GCITheme/Styles/Site.css" rel="stylesheet" type="text/css" />
<link href="/Themes/GCITheme/Styles/MyFontsWebfontsKit.css" rel="stylesheet" type="text/css" />
<link href="/Modules/FeaturedItemSlider/Styles/FeaturedItems.css" rel="stylesheet" type="text/css" />
<script src="/Modules/Orchard.jQuery/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="/Modules/Orchard.jQuery/Scripts/jquery-ui.min.js" type="text/javascript"></script>
<script src="/Modules/Orchard.DesignerTools/Scripts/orchard-designertools-shapetracing.js" type="text/javascript"></script>
<script src="/Modules/Orchard.DesignerTools/Scripts/jquery.scrollTo-min.js" type="text/javascript"></script>
<!--[if lt IE 9]> <script src="/Core/Shapes/Scripts/html5.js" type="text/javascript"></script> <![endif]--> ======================================================

This is the the home page when Shape Tracing is off and rendering incorrectly. Many CSS files are missing.


<!DOCTYPE html>
<html lang="en-US" class="static containers">
<head>
<meta charset="utf-8" />
<title>GCI - Services</title> 
<link href="http://fonts.googleapis.com/css?family=Lobster&amp;subset=latin" rel="stylesheet" type="text/css" />
<link href="/Themes/GCITheme/Styles/Site.css" rel="stylesheet" type="text/css" />
<link href="/Themes/GCITheme/Styles/MyFontsWebfontsKit.css" rel="stylesheet" type="text/css" />
<link href="/Modules/FeaturedItemSlider/Styles/FeaturedItems.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]> <script src="/Core/Shapes/Scripts/html5.js" type="text/javascript"></script> <![endif]-->
Oct 28, 2013 at 8:31 PM
As far as I can see, only shape tracing related CSS files (with DesignerTools in the path) are missing in the second code listing. Also jQuery javascript files aren't there. Do you have jQuery js files when loading home page with admin user (without shape tracing on)? It might be required (for the featured item slider?), and provided by some view that is rendered only for admin, which corrects the rendering.