<div dir="ltr">I Davi, <div>why not use the shopping cart in layer list to change permissions to all the selected? Are there too many layers?</div><div>Alternatively you can edit settings and make sure default permissions are false <a href="https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L492">https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L492</a> and then run in the shell:<div><br></div><div>>>> from geonode.base.models import ResourceBase</div><div>>>> for resource in ResourceBase.objects.all(): resource.set_default_permissions()</div></div><div><br></div><div>hope this helps</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-22 15:13 GMT+02:00 Davi Custodio <span dir="ltr"><<a href="mailto:davicustodio@gmail.com" target="_blank">davicustodio@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello guys. I'm using Geonode 2.4. I would like to remove the right to download and view layers for anonymous users on all layers. For this, by investigating the database tables, I executed the following script:</div><div><br></div><div>delete from guardian_userobjectpermission where user_id = -1 and permission_id = 117 or permission_id = 115</div><div><br></div><div>Where user_id = -1 refers to anonymous users, and the 115 and 117 permission to view and downloads.</div><div><br></div><div>I was hoping to get all of the download and preview checks for any anonymous person.</div><div><br></div><div>That's not what happened. Although there are no records in guardian_userobjectpermission, the checkboxes remain checked and the accesses remain open.</div><div><br></div><div>Could someone tell me another strategy to solve the problem?</div><div><br></div><div>Thank you.</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_9018488624561172184gmail_signature">Davi de O. Custódio</div>
</font></span></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="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://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>