[GeoNode-devel] How to bypass the "not permitted" message when trying to access to layer ?
pcorti at gmail.com
Wed Sep 4 07:56:01 PDT 2019
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
On Wed, Sep 4, 2019 at 5:40 AM Samuel POTTER <samuel.potter at cirad.fr> wrote:
> 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
Geospatial software developer
More information about the geonode-devel