Skip to content

Commit

Permalink
- regression: document upload fails since it is wrongly trying to pu…
Browse files Browse the repository at this point in the history
…rge GeoFence rules
  • Loading branch information
afabiani committed Oct 24, 2018
1 parent cf1627e commit f6462bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geonode/security/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ def set_permissions(self, perm_spec):
}
"""
remove_object_permissions(self)
if settings.OGC_SERVER['default'].get("GEOFENCE_SECURITY_ENABLED", False):
purge_geofence_layer_rules(self.get_self_resource())
if self.__class__.__name__ == 'Layer':
if settings.OGC_SERVER['default'].get("GEOFENCE_SECURITY_ENABLED", False):
purge_geofence_layer_rules(self.get_self_resource())

# default permissions for resource owner
set_owner_permissions(self)
Expand Down

0 comments on commit f6462bb

Please sign in to comment.