Skip to content

Commit

Permalink
Fix anonymous user subset filter. (#625)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <lorenzett@gis3w.it>
  • Loading branch information
wlorenzetti and wlorenzetti authored Oct 18, 2023
1 parent 09121ec commit 37fa64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g3w-admin/qdjango/models/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def get_constraints_for_anonymoususer(cls, layer_id, context='v'):
if not constraints:
return []

return cls.objects.filter(anonymoususer=True)
return cls.objects.filter(anonymoususer=True, constraint__in=constraints)

@classmethod
def get_rule_definition_for_user(cls, user, layer_id, context='v'):
Expand Down

0 comments on commit 37fa64f

Please sign in to comment.