Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 10, 2018
1 parent 372154c commit 1712537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsserver_accesscontrol.py
Expand Up @@ -92,10 +92,10 @@ def layerPermissions(self, layer):

rights = QgsAccessControlFilter.LayerPermissions()
# Used to test WFS transactions
if rh.parameterMap()["LAYER_PERM"] == "no":
if rh.parameterMap().get("LAYER_PERM") == "no":
return rights
# Used to test the WCS
if rh.parameterMap()["TEST"] == "dem":
if rh.parameterMap().get("TEST") == "dem":
rights.canRead = layer.name() != "dem"
else:
rights.canRead = layer.name() != "Country"
Expand Down

0 comments on commit 1712537

Please sign in to comment.