<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want unauthenticated users to be able to access public layers, maps and documents, but not people and groups.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>TRY 1:<o:p></o:p></b></p>
<p class="MsoNormal">Following the <a href="http://docs.geonode.org/en/master/reference/developers/settings.html#security-settings">
doco</a> I added this to local_settings.py:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">LOCKDOWN_GEONODE = True<o:p></o:p></p>
<p class="MsoNormal">AUTH_EXEMPT_URLS = ('/$', '/maps', '/layers', '/documents',)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I get a login prompt for People and Groups, but no login prompt on home, layers, maps or documents.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However I still can’t actually see any layers, maps or documents: it looks as if the cupboards are bare.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>TRY 2:<o:p></o:p></b></p>
<p class="MsoNormal">For now I’ve followed <a href="https://lists.osgeo.org/pipermail/geonode-devel/2015-May/000074.html">
this post</a> and hacked the profile_list.html and group_list.html templates to wrap the people and group list items in an authentication check:<o:p></o:p></p>
<p class="MsoNormal">        {% if user.is_authenticated %}<o:p></o:p></p>
<p class="MsoNormal">        {% include "people/_profile_list_item.html" %}<o:p></o:p></p>
<p class="MsoNormal">        {% else %}<o:p></o:p></p>
<p class="MsoNormal">          <p>Please sign in to explore People.</p><o:p></o:p></p>
<p class="MsoNormal">        {% endif %}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a better way? Where in the code does geonode use LOCKDOWN_GEONODE to hide content (not just URLs)?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#E36C0A;mso-fareast-language:EN-AU">Jonathan Doig</span></b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU">Software Engineer – Spatial Systems<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU">City Futures Research Centre<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU">UNSW Built Environment
<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU">Level 3, Red Centre West Wing
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU">UNSW Sydney<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU">NSW 2052 AUSTRALIA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU">T:+ 61 (2) 9385 5319 M: 0409 049185<o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://cityfutures.be.unsw.edu.au/"><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#0563C1;mso-fareast-language:EN-AU">cityfutures.net.au</span></a><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#7F7F7F;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#221E1F;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#221E1F;mso-fareast-language:EN-AU">CRICOS Provider Code 00098G</span><span style="font-size:8.0pt;color:#221E1F;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#221E1F;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU"><img border="0" width="751" height="79" id="Picture_x0020_8" src="cid:image002.png@01D282C0.00437BC0" alt="01_PARTER LOGOS"></span><span style="font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#221E1F;mso-fareast-language:EN-AU">Follow us:
</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU"> 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#1F497D;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="http://www.facebook.com/UNSWBE"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_15" src="cid:image004.jpg@01D282C0.00437BC0" alt="facebookesig"></span></a><a href="http://twitter.com/UNSWBuiltEnv"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_14" src="cid:image006.jpg@01D282C0.00437BC0" alt="twitteresig"></span></a><a href="http://instagram.com/unswbe"><span style="color:#1F497D;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_13" src="cid:image008.png@01D282C0.00437BC0" alt="cid:image013.png@01D1D83D.50C334B0"></span></a><a href="http://plus.google.com/103377744913804443069"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_12" src="cid:image010.jpg@01D282C0.00437BC0" alt="Web-Google-plus-Metro-icon-esog"></span></a><a href="http://www.linkedin.com/groups/UNSW-Built-Environment-6616950"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_11" src="cid:image012.jpg@01D282C0.00437BC0" alt="linkedinesig"></span></a><a href="http://www.flickr.com/photos/unswbuiltenvironment/"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_10" src="cid:image014.jpg@01D282C0.00437BC0" alt="flickresig"></span></a><a href="https://www.youtube.com/unswbuiltenvironment"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:blue;mso-fareast-language:EN-AU;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_9" src="cid:image016.jpg@01D282C0.00437BC0" alt="youtubeesig"></span></a><span style="color:#1F497D;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:6.5pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:EN-AU">This email and any attachment(s) transmitted with it are intended solely for the use of the addressee(s) and may contain information
 that is confidential or subject to legal privilege. If you receive this email in error, please disregard the contents of the email and attachment(s), delete them and notify the sender immediately. Please note that any copying, distribution or use of this email
 is prohibited. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the view of The University of New South Wales. Before opening any attachments, please check for
 viruses. UNSW ABN 57 195 873 179.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>