Skip to content

Commit

Permalink
[Fixes GeoNode#12585] change_dataset_style and change_dataset_data ar…
Browse files Browse the repository at this point in the history
…e not returned
  • Loading branch information
mattiagiupponi authored and giohappy committed Sep 17, 2024
1 parent 7ea4846 commit 4caddf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/security/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ def calculate_perms(instance, user):
perms = calculate_perms(self, user)

if getattr(self, "get_real_instance", None):
perms.union(calculate_perms(self.get_real_instance(), user))
perms = perms.union(calculate_perms(self.get_real_instance(), user))

if getattr(self, "get_self_resource", None):
perms.union(calculate_perms(self.get_self_resource(), user))
perms = perms.union(calculate_perms(self.get_self_resource(), user))

perms_as_list = list(set(perms))

Expand Down

0 comments on commit 4caddf7

Please sign in to comment.