<div dir="ltr">Hi Kevin,<div><br></div><div>to disable them at all you can just remove both the links in the templates and the url from the people/urls.py and groups/urls.py</div><div>To only restrict them to some users you have to write an authorisation backend for the people and group api. You ca refer to the tastypie docs for it.</div><div><br></div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L181">https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L181</a><br></div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L207">https://github.com/GeoNode/geonode/blob/master/geonode/api/api.py#L207</a><br></div><div><br></div><div><a href="http://django-tastypie.readthedocs.io/en/latest/authorization.html">http://django-tastypie.readthedocs.io/en/latest/authorization.html</a><br></div><div><br></div><div>hope this helps</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-29 18:20 GMT+02:00 Kevin Côté <span dir="ltr"><<a href="mailto:Kevin.Cote2@usherbrooke.ca" target="_blank">Kevin.Cote2@usherbrooke.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi,</p>
<p>I want to restrain access to the /people/ and to /groups/ pages to all users (if possible and not to complicated, all users except superusers). </p>
<p>I know there is the AUTH_EXEMPT_URLS config that can be tuned to allow access to defined URLs to unregistered users, but what I want is a way to disable the people and groups page to everyone or to allow just a defined type of users. I want to make sure that theses pages can't be accessed by typing "website.url/people/" or "website.url/groups/". </p>
<p>I hope I'm clear !</p>
<p><span style="font-size:10pt">Thanks a lot</span></p>
<p> </p>
<p> </p>
<div> </div>
</div>
<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>