[GeoNode-devel] How to bypass the "not permitted" message when trying to access to layer ?

Paolo Corti pcorti at gmail.com
Wed Sep 4 07:56:01 PDT 2019


Hi Samuel
in my opinion the way to do this is by overriding the the
create_response method in CommonModelApi class (in
geonode/api/resourcebase_api) in your GeoNode project.
Hope this helps
Paolo


On Wed, Sep 4, 2019 at 5:40 AM Samuel POTTER <samuel.potter at cirad.fr> wrote:
>
> Hi,
>
> For my company I have to change the display of the layer_list on geonode. For example if the user (logged or no) don't have "the view_resource" he will still see the resource in the layer_list but when he will try to access to it, he will only be able to see the metadata but not the map. I've already done the display of the map in the list even if the user don't have the permission to see, but when I clik on the data, I have the message "not permitted" if I'm connected or a redirection to the loggin screen. I would like to find a way to bypass this, I tried to find where the status message was called but I didn't find it.
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel



--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
#drt3jc1


More information about the geonode-devel mailing list