<div dir="ltr">Handling that in the views should be a better way than in the forms internals. <div>In the view is req.user. This will return an instance of People.Profile.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-21 13:51 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>Would enable some fields in the metadata form only for users with assigned superuser profile. I made a few attempts to get the user logged into the form, and also the views using the request, but nothing worked.</div><div>Can anyone give me a hint on how to get the current user in the form?</div><div><br></div><div>tanks</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>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="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>