Skip to content

Commit

Permalink
[Fixes #6996] Layers without viewing and downloading permissions, are…
Browse files Browse the repository at this point in the history
… still displayed

(cherry picked from commit 6813680)
  • Loading branch information
afabiani committed Mar 5, 2021
1 parent 65d4a54 commit 5794f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/security/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def sync_geofence_with_guardian(layer, perms, user=None, group=None, group_perms
toggle_layer_cache('{}:{}'.format(_layer_workspace, _layer_name), enable=True, filters=filters, formats=formats)

for service, allowed in gf_services.items():
if allowed:
if layer and layer.name and allowed:
if _user:
logger.debug("Adding 'user' to geofence the rule: %s %s %s" % (layer, service, _user))
_wkt = None
Expand Down

0 comments on commit 5794f6a

Please sign in to comment.