camptocamp/c2cgeoportal — pull request #958 by asaunier (2014-05-21 19:31:43+00:00)
Title: Role id was not taken into account for WFSTypes

Current user role was correctly taken into account for GetCap requests done using the _wms_getcap() function BUT was missing in _wfs_types(). As a result the layer filtering was not correctly done when setting the WFSTypes variable, impacting the GetFeature requests (incorrectly filtered layers could not be requested).

By the way I have also made sure that the role_id is not taken into account (ie. no layer filtering is done) for both _wms_getcap() and _wfs_types() when the ``use_security_metadata`` config parameter is False or not set (as in mapserverproxy.py).