<div dir="ltr"><div>Hello list.</div><div>I'm having trouble setting a new page I created in GeoNode becomes public access.</div><div>I created a page to display the metadata of the layers, documents and maps. The page is accessible to authenticated users (with login), but anonymous users trying to access the page, are directed to the login page with the prefix /account/login/?Next=</div><div><br></div><div>I checked the corresponding view of the page and it is without the @login_required.</div><div><br></div><div>Below the view: (layers/views.py)</div><div><br></div><div><i>def layer_metadata_read (request, layerName, template = 'layers / layer_metadata_read.html'):</i></div><div><i> _resolve_layer layer = (</i></div><div><i> request,</i></div><div><i> layerName,</i></div><div><i> 'Base.change_resourcebase_metadata'</i></div><div><i> _PERMISSION_MSG_METADATA)</i></div><div><i> </i></div><div><i> return render_to_response (template, RequestContext (request, {</i></div><div><i> "Layer": layer,</i></div><div><i> 'SITEURL': settings.SITEURL [: - 1]</i></div><div><i> }));</i></div><div><br></div><div>The file (layers/urls.py), the view metadata_read</div><div><br></div><div><i>urlpatterns = patterns (</i></div><div><i> 'Geonode.layers.views'</i></div><div><i> url (r '^ $' TemplateView.as_view (template_name = 'layers / layer_list.html'), name = 'layer_browse'),</i></div><div><i> url (r '^ $ upload', 'layer_upload' name = 'layer_upload'),</i></div><div><i> url (r '^ (? P <layerName> [^ /] *) $', 'layer_detail' name = "layer_detail"),</i></div><div><i> url (r '^ (? P <layerName> [^ /] *) / $ metadata', 'layer_metadata' name = "layer_metadata")</i></div><div><i> url (r '^ (? P <layerName> [^ /] *) / remove $', 'layer_remove' name = "layer_remove")</i></div><div><i> url (r '^ (? P <layerName> [^ /] *) / replace $', 'layer_replace' name = "layer_replace"),</i></div><div><i> url (r '^ (? P <layerName> [^ /] *) / $ thumbnail', 'layer_thumbnail' name = 'layer_thumbnail'),</i></div><div><i> url (r '^ (? P <layerName> [^ /] *) / $ metadata_read', 'layer_metadata_read' name = 'layer_metadata_read'),</i></div><div><i><br></i></div><div><i> # Url (r '^ api / batch_permissions /? $', 'Batch_permissions'</i></div><div><i> # Name = 'batch_permssions'),</i></div><div><i> # Url (r '^ api / batch_delete /? $', 'Batch_delete' name = 'batch_delete'),</i></div><div><i>)</i></div><div><br></div><div>I checked the possibility to address this, including metadata_read in the white list of security/ middleware.py file</div><div><br></div><div><i>white_list_paths = (</i></div><div><i> reverse ('account_login'),</i></div><div><i> reverse ('forgot_username'),</i></div><div><i> reverse ('help'),</i></div><div><i> reverse ('jscat'),</i></div><div><i> reverse ('lang'),</i></div><div><i> reverse ('layer_acls'),</i></div><div><i> reverse ('layer_acls_dep'),</i></div><div><i> reverse ('layer_resolve_user'),</i></div><div><i> reverse ('layer_resolve_user_dep'),</i></div><div><i><br></i></div><div><i> reverse ('metadata_read'),</i></div><div><i><br></i></div><div><i> '/account/(?!.*(?:signup))',</i></div><div><i> # Block unauthenticated users from creating new accounts.</i></div><div><i> '/ Static / *'</i></div><div><i> )</i></div><div><br></div><div>but neither worked.</div><div><br></div><div><br></div><div>Can anyone help?</div><div><br></div><div>Thank you.</div><div><br></div>-- <br><div class="gmail_signature">Davi de O. Custódio</div>
</div>