[GeoNode-users] How to get a current user inside metadata form ?

Simone Dalmasso simone.dalmasso at gmail.com
Thu Sep 22 09:01:04 PDT 2016


Handling that in the views should be a better way than in the forms
internals.
In the view is req.user. This will return an instance of People.Profile.

2016-09-21 13:51 GMT+02:00 Davi Custodio <davicustodio at gmail.com>:

> 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.
> Can anyone give me a hint on how to get the current user in the form?
>
> tanks
>
> --
> Davi de O. Custódio
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160922/f028456d/attachment.html>


More information about the geonode-users mailing list