[GeoNode-users] is_staff

Paolo Corti pcorti at gmail.com
Thu Nov 16 07:24:53 PST 2017


That is a solution, but it would require users to be assigned to the staff
group, which means they will be able to use the Django Admin.
p

2017-11-16 10:15 GMT-05:00 Toni Schönbuchner <toni.schoenbuchner at csgis.de>:

> Hi Aral,
>
>
> 1.       All registered users seem to be able to upload a new layer. I
> would like to limit this, either to a specific group that I may define, or
> to only staff.
> Is this possible? I could not find any relevant setting, or any relevant
> documentation on this.
>
>
>
> If it´s enough for you to just hide the layer upload button for everybody
> not stufff you could do something like this:
>
> change:
>
> https://github.com/GeoNode/geonode/blob/ae9902c5b8561099bbc766b2072030
> 7d9766de21/geonode/layers/templates/layers/layer_list.html#L12
>
> <a href="{% url "layer_upload" %}" class="btn btn-primary pull-right">{%
> trans "Upload Layers" %}</a>
>
>
> to
>
>
> {% if user.is_staff %} <a href="{% url "layer_upload" %}" class="btn
> btn-primary pull-right">{% trans "Upload Layers" %}</a> {% endif %}
>
> Keep in mind that it might still work that users use the geonode rest api.
> http://docs.geonode.org/en/master/tutorials/devel/
> geonode_apis/importer/rest_reference.html
>
> Regading 2, unfortuantely I cannot help you with ActiveDirectory
>
> cheers,
>
> toni
>
> -----------------------------------------------
> CSGIS
>
> -----------------------------------------------
> Kolonnadenstraße 1
> 04109 Leipzig
> -----------------------------------------------
> Mobil +49/ (0) 176 6680 3198 <+49%20176%2066803198>
> Tel  +49/ (0) 341 24 04 738 <+49%20341%202404738>
> Fax  +49/ (0) 341 24 04 73 <+49%20341%20240473>
> Web http://csgis.de
> -----------------------------------------------
>
> Hinweis gemäß § 33 BDSG
> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist
> ausschließlich für den
> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie
> diese E-Mail versehentlich
> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
> löschen Sie diese Nachricht
> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
> Vervielfältigung, Veränderung,
> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171116/881a3042/attachment.html>


More information about the geonode-users mailing list