From 4f1774a009d585915c788d797621eb73975ba2d4 Mon Sep 17 00:00:00 2001 From: wlorenzetti Date: Tue, 26 Sep 2023 11:27:26 +0200 Subject: [PATCH] Fix test for layer acl QGIS server filter. --- g3w-admin/caching/tests/test_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/g3w-admin/caching/tests/test_api.py b/g3w-admin/caching/tests/test_api.py index a12af58cd..e54a9a6ed 100644 --- a/g3w-admin/caching/tests/test_api.py +++ b/g3w-admin/caching/tests/test_api.py @@ -80,6 +80,8 @@ def test_tilestache_api(self): client = Client() layer = Layer.objects.get(project=self.project.instance, qgs_layer_id='spatialite_points20190604101052075') assign_perm('view_project', self.anonymoususer, self.project.instance) + for l in self.project.instance.layer_set.all(): + assign_perm("view_layer", self.anonymoususer, l) # active caching for layer cachinglayer = G3WCachingLayer.objects.create(app_name='qdjango', layer_id=layer.pk)