<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Hi,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I'm working as an intern for a company. My work is to upgrade the GeoNode version and change things on it. I would like to know if some of you could explain me how to change the permissions button in a layer for example ?</div><div dir="ltr" data-setdir="false">If I upload a new map, and I don't give the right for the user to download it, I want to hide the button. So for this I thought I could do something like :</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div>{% if resource.storeType != "remoteStore" %}</div><div dir="ltr" data-setdir="false"><span style="white-space: pre-wrap;"> </span><span><span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">{% get_obj_perms request.user for resource.layer as "Layer_perms" %} </span></span> </div><div> <li class="list-group-item"></div><div> {% if links or links_download %}</div><div> <button class="btn btn-primary btn-md btn-block" data-toggle="modal" data-target="#download-layer">{% trans "Download Layer" %}</button></div><div> {% else %}</div><div> {% if request.user.is_authenticated %}</div><div> <button class="btn btn-primary btn-md btn-block" id="request-download">{% trans "Request Download" %}</button></div><div> {% endif %}</div><div> </li></div></div><div><br></div><div dir="ltr" data-setdir="false">but after doing that, the "Download layer" was still there. </div><br></div></div></body></html>