Skip to content

Commit

Permalink
Fix test for layer acl QGIS server filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Sep 26, 2023
1 parent a54ed0f commit f7a81e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions g3w-admin/qdjango/tests/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ def test_anonymoususer_constraint(self):

# For AnonymousUser
assign_perm('view_project', get_anonymous_user(), self.qdjango_project)
for l in self.qdjango_project.layer_set.all():
assign_perm('view_layer', get_anonymous_user(), l)

self.assertTrue(self._check_subset_string(login=False))

constraint_anonymous = SingleLayerConstraint(layer=self.world, active=True)
Expand Down

0 comments on commit f7a81e4

Please sign in to comment.