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 883620e commit a54ed0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions g3w-admin/qdjango/tests/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -1773,12 +1773,12 @@ def test_geoconstraint_filter(self):
constraint.save()

# assign permissions
assign_perm('view_project', self.test_viewer1, self.qdjango_project)
assign_perm('view_project', self.test_viewer1_3, self.qdjango_project)
assign_perm('view_project', self.test_gu_viewer1, self.qdjango_project)

# also to Anonymous user
assign_perm('view_project', get_anonymous_user(), self.qdjango_project)
for u in (self.test_viewer1, self.test_viewer1_3, self.test_gu_viewer1, get_anonymous_user()):
assign_perm('view_project', u, self.qdjango_project)
for l in self.qdjango_project.layer_set.all():
assign_perm("view_layer", u, l)


ows_url = reverse('OWS:ows', kwargs={'group_slug': self.qdjango_project.group.slug,
'project_type': 'qdjango', 'project_id': self.qdjango_project.id})
Expand Down

0 comments on commit a54ed0f

Please sign in to comment.