[GeoNode-devel] How to add a lock in the ressource snippet ?

Samuel POTTER samuel.potter at cirad.fr
Thu Sep 12 01:00:05 PDT 2019


Good morning, 

I would like to set a lock in the ressource snippet in the ressources list when the ressource don't have all the permissions like "view_resourcebase", download etc. For this, my predecessor just add this line.
"<span ng-if="!item.view_resourcebase" class="pull-right"><i class="fa fa-lock"></i>". I thought it would work for me but when I tried, the locks applied on all the ressource even if they had all the permissions.
So I would like some tips to help me with this please. 

Thank you, 


More information about the geonode-devel mailing list