From f7a81e44d6156fd30484f58fe09bb8ca2ff9cfb8 Mon Sep 17 00:00:00 2001 From: wlorenzetti Date: Tue, 26 Sep 2023 09:36:38 +0200 Subject: [PATCH] Fix test for layer acl QGIS server filter. --- g3w-admin/qdjango/tests/test_constraints.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/g3w-admin/qdjango/tests/test_constraints.py b/g3w-admin/qdjango/tests/test_constraints.py index 614cfc96e..8069e8aa2 100644 --- a/g3w-admin/qdjango/tests/test_constraints.py +++ b/g3w-admin/qdjango/tests/test_constraints.py @@ -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)